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