/[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.14 - (hide annotations) (download)
Thu Jul 1 21:45:11 2004 UTC (19 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57g_pre, checkpoint57b_post, checkpoint56b_post, checkpoint54d_post, checkpoint54e_post, checkpoint57d_post, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint54f_post, checkpoint55i_post, checkpoint55c_post, checkpoint57f_post, checkpoint57a_post, checkpoint54b_post, checkpoint55g_post, checkpoint57c_post, checkpoint55d_post, checkpoint54a_pre, checkpoint55d_pre, checkpoint57c_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint57e_post, checkpoint55b_post, checkpoint55f_post, checkpoint53g_post, eckpoint57e_pre, checkpoint56a_post, checkpoint57f_pre, checkpoint56c_post, checkpoint57a_pre, checkpoint55a_post, checkpoint55e_post, checkpoint54c_post
Changes since 1.13: +2 -1 lines
prepare splitting of thermodynamics: store convective counter in common block

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

  ViewVC Help
Powered by ViewVC 1.1.22