/[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.7 - (show annotations) (download)
Mon May 23 20:51:09 2005 UTC (19 years ago) by molod
Branch: MAIN
CVS Tags: checkpoint57i_post
Changes since 1.6: +11 -1 lines
New diagnostic - delta pressure on alternate (fizhi for now) grid

1 C $Header: /u/gcmpack/MITgcm/pkg/gridalt/gridalt_update.F,v 1.6 2004/07/02 20:22:05 molod Exp $
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 logical diagnostics_is_on
33 external diagnostics_is_on
34
35 im1 = 1-OLx
36 im2 = sNx+OLx
37 jm1 = 1-OLy
38 jm2 = sNy+OLy
39 i1 = 1
40 i2 = sNx
41 j1 = 1
42 j2 = sNy
43
44 #ifdef ALLOW_FIZHI
45 #ifdef NONLIN_FRSURF
46
47 if(usefizhi .and. (select_rStar.GT.0) )then
48 do bj = myByLo(myThid), myByHi(myThid)
49 do bi = myBxLo(myThid), myBxHi(myThid)
50 c
51 do L = 1,Nrphys
52 do j = j1,j2
53 do i = i1,i2
54 dpphys(i,j,L,bi,bj) = dpphys0(i,j,L,bi,bj) *
55 . rstarfacC(i,j,bi,bj)
56 enddo
57 enddo
58 enddo
59 c
60 enddo
61 enddo
62 endif
63
64 #endif
65
66 #ifdef ALLOW_DIAGNOSTICS
67 if(useDiagnostics) then
68 IF ( DIAGNOSTICS_IS_ON('DPPHYS ',myThid) ) THEN
69 CALL DIAGNOSTICS_FILL(dpphys, 'DPPHYS ',0,Nrphys,0,1,1,myThid)
70 ENDIF
71 endif
72 #endif
73
74 #endif
75 return
76 end

  ViewVC Help
Powered by ViewVC 1.1.22