/[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.12 - (show annotations) (download)
Thu Oct 30 12:00:41 2003 UTC (20 years, 6 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint52d_pre, checkpoint52, checkpoint51t_post, checkpoint51s_post, checkpoint52b_pre, checkpoint51q_post, checkpoint52b_post, checkpoint52c_post, checkpoint51r_post, checkpoint52a_pre, branch-netcdf, checkpoint52a_post, ecco_c52_e35, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-nonh, netcdf-sm0
Changes since 1.11: +4 -1 lines
 o updated and tested version of the cd_code package
 o almost all of the cd_code functionality has been moved into
   the package but some cleanups (read/write checkpoints) remain

1 C $Header: /u/u3/gcmpack/MITgcm/model/src/ini_dynvars.F,v 1.11 2003/10/28 22:57:59 edhill 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 #ifdef ALLOW_CD_CODE
33 #include "CD_CODE_VARS.h"
34 #endif
35
36 C !INPUT/OUTPUT PARAMETERS:
37 C == Routine arguments ==
38 C myThid - Number of this instance of INI_UVEL
39 INTEGER myThid
40
41 C !LOCAL VARIABLES:
42 C == Local variables ==
43 C bi,bj - Loop counters
44 C I,J,K
45 INTEGER bi, bj
46 INTEGER I, J, K
47 CEOP
48
49 C-- Over all tiles
50 DO bj = myByLo(myThid), myByHi(myThid)
51 DO bi = myBxLo(myThid), myBxHi(myThid)
52
53 C- 3D arrays
54 DO K=1,Nr
55 DO J=1-Oly,sNy+Oly
56 DO I=1-Olx,sNx+Olx
57
58 uVel(I,J,K,bi,bj)=0. _d 0
59 vVel(I,J,K,bi,bj)=0. _d 0
60 wVel(I,J,K,bi,bj)=0. _d 0
61 theta(I,J,K,bi,bj)=0. _d 0
62 salt(I,J,K,bi,bj)=0. _d 0
63
64 gU(I,J,K,bi,bj)=0. _d 0
65 gV(I,J,K,bi,bj)=0. _d 0
66 gT(I,J,K,bi,bj)=0. _d 0
67 gS(I,J,K,bi,bj)=0. _d 0
68 gUnm1(I,J,K,bi,bj)=0. _d 0
69 gVnm1(I,J,K,bi,bj)=0. _d 0
70 gTnm1(I,J,K,bi,bj)=0. _d 0
71 gSnm1(I,J,K,bi,bj)=0. _d 0
72
73 #ifdef ALLOW_CD_CODE
74 uNM1(I,J,K,bi,bj)=0. _d 0
75 vNM1(I,J,K,bi,bj)=0. _d 0
76 uVeld(I,J,K,bi,bj)=0. _d 0
77 vVeld(I,J,K,bi,bj)=0. _d 0
78 #endif
79
80 #ifdef ALLOW_NONHYDROSTATIC
81 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
82 gW(I,J,K,bi,bj)=0. _d 0
83 gWnm1(I,J,K,bi,bj)=0. _d 0
84 #endif
85
86 totPhiHyd(I,J,K,bi,bj)=0. _d 0
87 ENDDO
88 ENDDO
89 ENDDO
90
91 C- 2D arrays
92 DO J=1-Oly,sNy+Oly
93 DO I=1-Olx,sNx+Olx
94 etaN(I,J,bi,bj)=0. _d 0
95 etaH(I,J,bi,bj)=0. _d 0
96 #ifdef ALLOW_CD_CODE
97 etaNm1(I,J,bi,bj)=0. _d 0
98 #endif
99 phiHydLow(I,J,bi,bj)=0. _d 0
100 ENDDO
101 ENDDO
102
103 ENDDO
104 ENDDO
105
106 RETURN
107 END

  ViewVC Help
Powered by ViewVC 1.1.22