/[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.11 - (show 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 C $Header: /u/gcmpack/MITgcm/pkg/gridalt/gridalt_update.F,v 1.10 2006/08/03 19:03:15 molod Exp $
2 C $Name: $
3
4 #include "GRIDALT_OPTIONS.h"
5
6 subroutine gridalt_update(myThid)
7 c***********************************************************************
8 c subroutine gridalt_update
9 c
10 c Purpose: Update the pressure thicknesses of the layers of the
11 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
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 _RL temparr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nrphys,nSx,nSy)
35
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
45 #ifdef ALLOW_FIZHI
46 #ifdef NONLIN_FRSURF
47
48 if(usefizhi .and. (select_rStar.GT.0) )then
49 do bj = myByLo(myThid), myByHi(myThid)
50 do bi = myBxLo(myThid), myBxHi(myThid)
51 c
52 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 . rstarfacC(i,j,bi,bj)
57 enddo
58 enddo
59 enddo
60 c
61 enddo
62 enddo
63
64 endif
65
66 #endif
67
68 #ifdef ALLOW_DIAGNOSTICS
69 if(useDiagnostics) then
70 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 temparr(i,j,L,bi,bj) = dpphys(i,j,L,bi,bj) * 1. _d -2
77 enddo
78 enddo
79 enddo
80 enddo
81 enddo
82 CALL DIAGNOSTICS_FILL(temparr,'DPPHYS ',-1,Nrphys,0,1,1,myThid)
83 ENDIF
84 endif
85 #endif
86
87 #endif
88 return
89 end

  ViewVC Help
Powered by ViewVC 1.1.22