/[MITgcm]/MITgcm/pkg/gridalt/gridalt_update.F
ViewVC logotype

Contents of /MITgcm/pkg/gridalt/gridalt_update.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Apr 12 19:01:43 2004 UTC (20 years, 1 month ago) by molod
Branch: MAIN
CVS Tags: checkpoint52m_post
Changes since 1.2: +18 -10 lines
Add ifdef sequence for fizhi

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

  ViewVC Help
Powered by ViewVC 1.1.22