/[MITgcm]/MITgcm/pkg/gridalt/gridalt_initialise.F
ViewVC logotype

Contents of /MITgcm/pkg/gridalt/gridalt_initialise.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Sat Jul 7 00:08:09 2012 UTC (11 years, 9 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.6: +6 -6 lines
uses standard #indude ${PKG}_OPTIONS.h

1 C $Header: /u/gcmpack/MITgcm/pkg/gridalt/gridalt_initialise.F,v 1.6 2005/05/23 20:51:09 molod Exp $
2 C $Name: $
3
4 #include "GRIDALT_OPTIONS.h"
5
6 subroutine gridalt_initialise (myThid)
7 c-----------------------------------------------------------------------
8 c Routine to initialise the gridalt package.
9 c
10 c Input: myThid - Process number calling this routine
11 c
12 c Notes:
13 c When used with fizhi, this routine is the interface
14 c to make_phys_grid
15 c Calls: make_phys_grid (define the physics grid and mappings)
16 c when diagnostics are used, call gridalt_diagnostics_init
17 c-----------------------------------------------------------------------
18 implicit none
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 nlph
30 integer bi, bj
31 integer im1, im2, jm1, jm2, idim1, idim2, jdim1, jdim2
32
33 im1 = 1-OLx
34 im2 = sNx+OLx
35 jm1 = 1-OLy
36 jm2 = sNy+OLy
37 idim1 = 1
38 idim2 = sNx
39 jdim1 = 1
40 jdim2 = sNy
41
42 #ifdef ALLOW_FIZHI
43 if(usefizhi) then
44 do bj = myByLo(myThid), myByHi(myThid)
45 do bi = myBxLo(myThid), myBxHi(myThid)
46
47 call make_phys_grid(drF,hfacC,im1,im2,jm1,jm2,Nr,Nsx,Nsy,
48 . 1,sNx,1,sNy,bi,bj,Nrphys,ksurfC,dpphys0,nlph,nlperdyn)
49
50 if( NrPhys.ne.nlph ) then
51 print *,' ERROR CONDITION - Model has been brought down '
52 print *,' Physics dimension in fizhi_size is ',Nrphys,
53 . ' New grid has ',nlph,' levels '
54 stop
55 endif
56
57 enddo
58 enddo
59 endif
60
61 #ifdef ALLOW_DIAGNOSTICS
62 if ( useDiagnostics ) then
63 call gridalt_diagnostics_init( myThid )
64 endif
65 #endif
66
67 #endif
68
69 return
70 end

  ViewVC Help
Powered by ViewVC 1.1.22