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

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

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


Revision 1.11 - (hide annotations) (download)
Tue Oct 28 22:57:59 2003 UTC (20 years, 6 months ago) by edhill
Branch: MAIN
Changes since 1.10: +3 -3 lines
 o add a "cd_code" package and update all the verification tests
   so that they use the new package instead of "INCLUDE_CD_CODE"

1 edhill 1.11 C $Header: /u/u3/gcmpack/MITgcm/model/src/ini_dynvars.F,v 1.10 2003/10/09 04:19:18 edhill Exp $
2 mlosch 1.7 C $Name: $
3 adcroft 1.2
4 edhill 1.10 #include "PACKAGES_CONFIG.h"
5 adcroft 1.2 #include "CPP_OPTIONS.h"
6    
7 cnh 1.5 CBOP
8     C !ROUTINE: INI_DYNVARS
9     C !INTERFACE:
10 adcroft 1.2 SUBROUTINE INI_DYNVARS( myThid )
11 cnh 1.5 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 adcroft 1.2 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 cnh 1.5 C !INPUT/OUTPUT PARAMETERS:
34 adcroft 1.2 C == Routine arguments ==
35     C myThid - Number of this instance of INI_UVEL
36     INTEGER myThid
37    
38 cnh 1.5 C !LOCAL VARIABLES:
39 adcroft 1.2 C == Local variables ==
40     C bi,bj - Loop counters
41     C I,J,K
42     INTEGER bi, bj
43     INTEGER I, J, K
44 cnh 1.5 CEOP
45 adcroft 1.2
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 heimbach 1.3 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 adcroft 1.2
70 edhill 1.11 #ifdef ALLOW_CD_CODE
71 heimbach 1.3 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 adcroft 1.2 #endif
76    
77     #ifdef ALLOW_NONHYDROSTATIC
78 edhill 1.10 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
79 heimbach 1.3 gW(I,J,K,bi,bj)=0. _d 0
80     gWnm1(I,J,K,bi,bj)=0. _d 0
81 adcroft 1.2 #endif
82    
83 jmc 1.8 totPhiHyd(I,J,K,bi,bj)=0. _d 0
84 adcroft 1.2 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 heimbach 1.3 etaN(I,J,bi,bj)=0. _d 0
92 jmc 1.4 etaH(I,J,bi,bj)=0. _d 0
93 edhill 1.11 #ifdef ALLOW_CD_CODE
94 heimbach 1.3 etaNm1(I,J,bi,bj)=0. _d 0
95 jmc 1.4 #endif
96 mlosch 1.7 phiHydLow(I,J,bi,bj)=0. _d 0
97 adcroft 1.2 ENDDO
98     ENDDO
99    
100     ENDDO
101     ENDDO
102    
103     RETURN
104     END

  ViewVC Help
Powered by ViewVC 1.1.22