/[MITgcm]/MITgcm/model/src/ini_dynvars.F
ViewVC logotype

Contents of /MITgcm/model/src/ini_dynvars.F

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


Revision 1.9.2.1 - (show annotations) (download)
Thu Oct 2 18:10:45 2003 UTC (20 years, 7 months ago) by edhill
Branch: branch-genmake2
Changes since 1.9: +3 -1 lines
 o included PACKAGES_CONFIG.h in all files where the ALLOW_${PKG_NAME}
     defines are used
 o added comments where IF ( use${PKG_NAME} ) statements will probably
     be needed -- or need to be edited

1 C $Header: /u/u3/gcmpack/MITgcm/model/src/ini_dynvars.F,v 1.9 2003/04/17 13:36:37 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: INI_DYNVARS
9 C !INTERFACE:
10 SUBROUTINE INI_DYNVARS( myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE INI_DYNVARS
14 C | o Initialise to zero all DYNVARS.h arrays
15 C *==========================================================*
16 C | Sets all the State variables to zero.
17 C | Sets all the Gs (arrays used for multi-level time-stepping)
18 C | to zero.
19 C *==========================================================*
20 C \ev
21
22 C !USES:
23 IMPLICIT NONE
24 C === Global variables ===
25 #include "SIZE.h"
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28 #include "DYNVARS.h"
29 #ifdef ALLOW_NONHYDROSTATIC
30 #include "GW.h"
31 #endif
32
33 C !INPUT/OUTPUT PARAMETERS:
34 C == Routine arguments ==
35 C myThid - Number of this instance of INI_UVEL
36 INTEGER myThid
37
38 C !LOCAL VARIABLES:
39 C == Local variables ==
40 C bi,bj - Loop counters
41 C I,J,K
42 INTEGER bi, bj
43 INTEGER I, J, K
44 CEOP
45
46 C-- Over all tiles
47 DO bj = myByLo(myThid), myByHi(myThid)
48 DO bi = myBxLo(myThid), myBxHi(myThid)
49
50 C- 3D arrays
51 DO K=1,Nr
52 DO J=1-Oly,sNy+Oly
53 DO I=1-Olx,sNx+Olx
54
55 uVel(I,J,K,bi,bj)=0. _d 0
56 vVel(I,J,K,bi,bj)=0. _d 0
57 wVel(I,J,K,bi,bj)=0. _d 0
58 theta(I,J,K,bi,bj)=0. _d 0
59 salt(I,J,K,bi,bj)=0. _d 0
60
61 gU(I,J,K,bi,bj)=0. _d 0
62 gV(I,J,K,bi,bj)=0. _d 0
63 gT(I,J,K,bi,bj)=0. _d 0
64 gS(I,J,K,bi,bj)=0. _d 0
65 gUnm1(I,J,K,bi,bj)=0. _d 0
66 gVnm1(I,J,K,bi,bj)=0. _d 0
67 gTnm1(I,J,K,bi,bj)=0. _d 0
68 gSnm1(I,J,K,bi,bj)=0. _d 0
69
70 #ifdef INCLUDE_CD_CODE
71 uNM1(I,J,K,bi,bj)=0. _d 0
72 vNM1(I,J,K,bi,bj)=0. _d 0
73 uVeld(I,J,K,bi,bj)=0. _d 0
74 vVeld(I,J,K,bi,bj)=0. _d 0
75 #endif
76
77 #ifdef ALLOW_NONHYDROSTATIC
78 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
79 gW(I,J,K,bi,bj)=0. _d 0
80 gWnm1(I,J,K,bi,bj)=0. _d 0
81 #endif
82
83 totPhiHyd(I,J,K,bi,bj)=0. _d 0
84 ENDDO
85 ENDDO
86 ENDDO
87
88 C- 2D arrays
89 DO J=1-Oly,sNy+Oly
90 DO I=1-Olx,sNx+Olx
91 etaN(I,J,bi,bj)=0. _d 0
92 etaH(I,J,bi,bj)=0. _d 0
93 #ifdef INCLUDE_CD_CODE
94 etaNm1(I,J,bi,bj)=0. _d 0
95 #endif
96 phiHydLow(I,J,bi,bj)=0. _d 0
97 ENDDO
98 ENDDO
99
100 ENDDO
101 ENDDO
102
103 RETURN
104 END

  ViewVC Help
Powered by ViewVC 1.1.22