/[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.5 - (show annotations) (download)
Wed May 5 00:39:21 2004 UTC (20 years, 1 month ago) by edhill
Branch: MAIN
CVS Tags: checkpoint52n_post, checkpoint53d_post, checkpoint53c_post, checkpoint53b_pre, checkpoint53a_post, checkpoint54, checkpoint53b_post, checkpoint53, checkpoint53g_post, checkpoint53f_post, checkpoint53d_pre
Changes since 1.4: +3 -0 lines
 o adding cvs 'Header:' and 'Name:' strings

1 C $Header: $
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
33 im1 = 1-OLx
34 im2 = sNx+OLx
35 jm1 = 1-OLy
36 jm2 = sNy+OLy
37 i1 = 1
38 i2 = sNx
39 j1 = 1
40 j2 = sNy
41
42 #ifdef ALLOW_FIZHI
43
44 if(usefizhi)then
45 do bj = myByLo(myThid), myByHi(myThid)
46 do bi = myBxLo(myThid), myBxHi(myThid)
47 c
48 do L = 1,Nrphys
49 do j = j1,j2
50 do i = i1,i2
51 dpphys(i,j,L,bi,bj) = dpphys0(i,j,L,bi,bj) *
52 . rstarfacC(i,j,bi,bj)
53 enddo
54 enddo
55 enddo
56 c
57 enddo
58 enddo
59 endif
60
61 #endif
62
63 return
64 end

  ViewVC Help
Powered by ViewVC 1.1.22