/[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.11 - (hide annotations) (download)
Sat Jul 7 00:08:09 2012 UTC (11 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.10: +6 -6 lines
uses standard #indude ${PKG}_OPTIONS.h

1 jmc 1.11 C $Header: /u/gcmpack/MITgcm/pkg/gridalt/gridalt_update.F,v 1.10 2006/08/03 19:03:15 molod Exp $
2 edhill 1.5 C $Name: $
3    
4 jmc 1.11 #include "GRIDALT_OPTIONS.h"
5    
6 molod 1.1 subroutine gridalt_update(myThid)
7     c***********************************************************************
8     c subroutine gridalt_update
9 jmc 1.11 c
10     c Purpose: Update the pressure thicknesses of the layers of the
11 molod 1.1 c alternative vertical grid (used now for atmospheric physics).
12     c
13     c Calculate: dpphys - new delta r (p*) edge-to-edge of physics grid
14     c using dpphys0 (initial value) and rstarfacC
15     c
16     c***********************************************************************
17     implicit none
18 jmc 1.11
19 molod 1.1 #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.10
64 molod 1.3 endif
65    
66     #endif
67 molod 1.7
68     #ifdef ALLOW_DIAGNOSTICS
69     if(useDiagnostics) then
70 molod 1.9 IF ( DIAGNOSTICS_IS_ON('DPPHYS ',myThid) ) THEN
71     do bj = myByLo(myThid), myByHi(myThid)
72     do bi = myBxLo(myThid), myBxHi(myThid)
73     do L = 1,Nrphys
74     do j = j1,j2
75     do i = i1,i2
76 molod 1.10 temparr(i,j,L,bi,bj) = dpphys(i,j,L,bi,bj) * 1. _d -2
77 molod 1.9 enddo
78 molod 1.8 enddo
79     enddo
80 molod 1.9 enddo
81     enddo
82     CALL DIAGNOSTICS_FILL(temparr,'DPPHYS ',-1,Nrphys,0,1,1,myThid)
83     ENDIF
84 molod 1.7 endif
85 molod 1.6 #endif
86 molod 1.1
87 molod 1.7 #endif
88 molod 1.1 return
89     end

  ViewVC Help
Powered by ViewVC 1.1.22