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

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

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


Revision 1.4 - (hide annotations) (download)
Tue Apr 27 16:38:51 2004 UTC (20 years, 1 month ago) by molod
Branch: MAIN
Changes since 1.3: +1 -1 lines
Rearrange include statements to fix something broken by last ci of params.h

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 molod 1.3 #include "PACKAGES_CONFIG.h"
15 molod 1.1 #include "CPP_OPTIONS.h"
16     #include "SIZE.h"
17 molod 1.4 #include "EEPARAMS.h"
18 molod 1.3 #include "PARAMS.h"
19 molod 1.1 #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 molod 1.3
39     #ifdef ALLOW_FIZHI
40 molod 1.1
41 molod 1.3 if(usefizhi)then
42     do bj = myByLo(myThid), myByHi(myThid)
43     do bi = myBxLo(myThid), myBxHi(myThid)
44 molod 1.1 c
45 molod 1.3 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 molod 1.2 . rstarfacC(i,j,bi,bj)
50 molod 1.3 enddo
51     enddo
52 molod 1.1 enddo
53 molod 1.3 c
54     enddo
55 molod 1.1 enddo
56 molod 1.3 endif
57    
58     #endif
59 molod 1.1
60     return
61     end

  ViewVC Help
Powered by ViewVC 1.1.22