/[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.8 - (hide annotations) (download)
Thu Jun 30 16:23:18 2005 UTC (18 years, 11 months ago) by molod
Branch: MAIN
CVS Tags: checkpoint57k_post, checkpoint57j_post
Changes since 1.7: +14 -2 lines
Flip DPPHYS diagnostic fill and convert to mb

1 molod 1.8 C $Header: /u/gcmpack/MITgcm/pkg/gridalt/gridalt_update.F,v 1.7 2005/05/23 20:51:09 molod Exp $
2 edhill 1.5 C $Name: $
3    
4 molod 1.1 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 molod 1.3 #include "PACKAGES_CONFIG.h"
18 molod 1.1 #include "CPP_OPTIONS.h"
19     #include "SIZE.h"
20 molod 1.4 #include "EEPARAMS.h"
21 molod 1.3 #include "PARAMS.h"
22 molod 1.1 #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 molod 1.7 logical diagnostics_is_on
33     external diagnostics_is_on
34 molod 1.8 _RL temparr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)
35 molod 1.1
36     im1 = 1-OLx
37     im2 = sNx+OLx
38     jm1 = 1-OLy
39     jm2 = sNy+OLy
40     i1 = 1
41     i2 = sNx
42     j1 = 1
43     j2 = sNy
44 molod 1.3
45     #ifdef ALLOW_FIZHI
46 molod 1.6 #ifdef NONLIN_FRSURF
47    
48     if(usefizhi .and. (select_rStar.GT.0) )then
49 molod 1.3 do bj = myByLo(myThid), myByHi(myThid)
50     do bi = myBxLo(myThid), myBxHi(myThid)
51 molod 1.1 c
52 molod 1.3 do L = 1,Nrphys
53     do j = j1,j2
54     do i = i1,i2
55     dpphys(i,j,L,bi,bj) = dpphys0(i,j,L,bi,bj) *
56 molod 1.2 . rstarfacC(i,j,bi,bj)
57 molod 1.3 enddo
58     enddo
59 molod 1.1 enddo
60 molod 1.3 c
61     enddo
62 molod 1.1 enddo
63 molod 1.3 endif
64    
65     #endif
66 molod 1.7
67     #ifdef ALLOW_DIAGNOSTICS
68     if(useDiagnostics) then
69     IF ( DIAGNOSTICS_IS_ON('DPPHYS ',myThid) ) THEN
70 molod 1.8 do bj = myByLo(myThid), myByHi(myThid)
71     do bi = myBxLo(myThid), myBxHi(myThid)
72     do L = 1,Nrphys
73     do j = j1,j2
74     do i = i1,i2
75     temparr(i,j,L,bi,bj) = dpphys(i,j,L,bi,bj) * 1.e-2
76     enddo
77     enddo
78     enddo
79     enddo
80     enddo
81     CALL DIAGNOSTICS_FILL(temparr, 'DPPHYS ',-1,Nrphys,0,1,1,myThid)
82 molod 1.7 ENDIF
83     endif
84 molod 1.6 #endif
85 molod 1.1
86 molod 1.7 #endif
87 molod 1.1 return
88     end

  ViewVC Help
Powered by ViewVC 1.1.22