/[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.12 - (hide 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 edhill 1.12 C $Header: /u/u3/gcmpack/MITgcm/model/src/ini_dynvars.F,v 1.11 2003/10/28 22:57:59 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 edhill 1.12 #endif
32     #ifdef ALLOW_CD_CODE
33     #include "CD_CODE_VARS.h"
34 adcroft 1.2 #endif
35    
36 cnh 1.5 C !INPUT/OUTPUT PARAMETERS:
37 adcroft 1.2 C == Routine arguments ==
38     C myThid - Number of this instance of INI_UVEL
39     INTEGER myThid
40    
41 cnh 1.5 C !LOCAL VARIABLES:
42 adcroft 1.2 C == Local variables ==
43     C bi,bj - Loop counters
44     C I,J,K
45     INTEGER bi, bj
46     INTEGER I, J, K
47 cnh 1.5 CEOP
48 adcroft 1.2
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 heimbach 1.3 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 adcroft 1.2
73 edhill 1.11 #ifdef ALLOW_CD_CODE
74 heimbach 1.3 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 adcroft 1.2 #endif
79    
80     #ifdef ALLOW_NONHYDROSTATIC
81 edhill 1.10 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
82 heimbach 1.3 gW(I,J,K,bi,bj)=0. _d 0
83     gWnm1(I,J,K,bi,bj)=0. _d 0
84 adcroft 1.2 #endif
85    
86 jmc 1.8 totPhiHyd(I,J,K,bi,bj)=0. _d 0
87 adcroft 1.2 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 heimbach 1.3 etaN(I,J,bi,bj)=0. _d 0
95 jmc 1.4 etaH(I,J,bi,bj)=0. _d 0
96 edhill 1.11 #ifdef ALLOW_CD_CODE
97 heimbach 1.3 etaNm1(I,J,bi,bj)=0. _d 0
98 jmc 1.4 #endif
99 mlosch 1.7 phiHydLow(I,J,bi,bj)=0. _d 0
100 adcroft 1.2 ENDDO
101     ENDDO
102    
103     ENDDO
104     ENDDO
105    
106     RETURN
107     END

  ViewVC Help
Powered by ViewVC 1.1.22