1 |
molod |
1.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 "CPP_OPTIONS.h" |
15 |
|
|
#include "SIZE.h" |
16 |
|
|
#include "EEPARAMS.h" |
17 |
|
|
#include "GRID.h" |
18 |
|
|
#include "fizhi_SIZE.h" |
19 |
|
|
#include "gridalt_mapping.h" |
20 |
|
|
#include "SURFACE.h" |
21 |
|
|
|
22 |
|
|
integer myThid |
23 |
|
|
|
24 |
|
|
integer im1,im2,jm1,jm2 |
25 |
|
|
integer i1,i2,j1,j2,bi,bj |
26 |
|
|
integer i,j,L |
27 |
|
|
|
28 |
|
|
im1 = 1-OLx |
29 |
|
|
im2 = sNx+OLx |
30 |
|
|
jm1 = 1-OLy |
31 |
|
|
jm2 = sNy+OLy |
32 |
|
|
i1 = 1 |
33 |
|
|
i2 = sNx |
34 |
|
|
j1 = 1 |
35 |
|
|
j2 = sNy |
36 |
|
|
|
37 |
|
|
do bj = myByLo(myThid), myByHi(myThid) |
38 |
|
|
do bi = myBxLo(myThid), myBxHi(myThid) |
39 |
|
|
c |
40 |
|
|
do L = 1,Nrphys |
41 |
|
|
do j = j1,j2 |
42 |
|
|
do i = i1,i2+1 |
43 |
|
|
dpphys(i,j,L,bi,bj) = dpphys0(i,j,L,bi,bj) * |
44 |
|
|
. rstarfacC(i,j,bi,bj) |
45 |
|
|
enddo |
46 |
|
|
enddo |
47 |
|
|
enddo |
48 |
|
|
c |
49 |
|
|
enddo |
50 |
|
|
enddo |
51 |
|
|
|
52 |
|
|
return |
53 |
|
|
end |