1 |
subroutine gridalt_update(myThid) |
2 |
c*********************************************************************** |
3 |
c subroutine gridalt_update |
4 |
c |
5 |
c Purpose: Update the pressure thicknesses of the layers of the |
6 |
c alternative vertical grid (used now for atmospheric physics). |
7 |
c |
8 |
c Calculate: dpphys - new delta r (p*) edge-to-edge of physics grid |
9 |
c using dpphys0 (initial value) and rstarfacC |
10 |
c |
11 |
c*********************************************************************** |
12 |
implicit none |
13 |
c |
14 |
#include "PACKAGES_CONFIG.h" |
15 |
#include "CPP_OPTIONS.h" |
16 |
#include "SIZE.h" |
17 |
#include "PARAMS.h" |
18 |
#include "EEPARAMS.h" |
19 |
#include "GRID.h" |
20 |
#include "fizhi_SIZE.h" |
21 |
#include "gridalt_mapping.h" |
22 |
#include "SURFACE.h" |
23 |
|
24 |
integer myThid |
25 |
|
26 |
integer im1,im2,jm1,jm2 |
27 |
integer i1,i2,j1,j2,bi,bj |
28 |
integer i,j,L |
29 |
|
30 |
im1 = 1-OLx |
31 |
im2 = sNx+OLx |
32 |
jm1 = 1-OLy |
33 |
jm2 = sNy+OLy |
34 |
i1 = 1 |
35 |
i2 = sNx |
36 |
j1 = 1 |
37 |
j2 = sNy |
38 |
|
39 |
#ifdef ALLOW_FIZHI |
40 |
|
41 |
if(usefizhi)then |
42 |
do bj = myByLo(myThid), myByHi(myThid) |
43 |
do bi = myBxLo(myThid), myBxHi(myThid) |
44 |
c |
45 |
do L = 1,Nrphys |
46 |
do j = j1,j2 |
47 |
do i = i1,i2 |
48 |
dpphys(i,j,L,bi,bj) = dpphys0(i,j,L,bi,bj) * |
49 |
. rstarfacC(i,j,bi,bj) |
50 |
enddo |
51 |
enddo |
52 |
enddo |
53 |
c |
54 |
enddo |
55 |
enddo |
56 |
endif |
57 |
|
58 |
#endif |
59 |
|
60 |
return |
61 |
end |