/[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.15 - (show annotations) (download)
Fri Apr 15 14:02:54 2005 UTC (19 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57s_post, checkpoint57g_post, checkpoint57r_post, checkpoint57i_post, checkpoint57n_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57h_pre, checkpoint57h_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, checkpoint57h_done, checkpoint57j_post, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post
Changes since 1.14: +16 -5 lines
Adams-Bashforth-3 : needs tendencies of the 2 previous time-steps

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_dynvars.F,v 1.14 2004/07/01 21:45:11 jmc Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: INI_DYNVARS
8 C !INTERFACE:
9 SUBROUTINE INI_DYNVARS( myThid )
10 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 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 #endif
31
32 C !INPUT/OUTPUT PARAMETERS:
33 C == Routine arguments ==
34 C myThid - Number of this instance of INI_UVEL
35 INTEGER myThid
36
37 C !LOCAL VARIABLES:
38 C == Local variables ==
39 C bi,bj - Loop counters
40 C I,J,K
41 INTEGER bi, bj
42 INTEGER I, J, K
43 CEOP
44
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 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 #ifdef ALLOW_ADAMSBASHFORTH_3
65 guNm(I,J,K,bi,bj,1)=0. _d 0
66 gvNm(I,J,K,bi,bj,1)=0. _d 0
67 gtNm(I,J,K,bi,bj,1)=0. _d 0
68 gsNm(I,J,K,bi,bj,1)=0. _d 0
69 guNm(I,J,K,bi,bj,2)=0. _d 0
70 gvNm(I,J,K,bi,bj,2)=0. _d 0
71 gtNm(I,J,K,bi,bj,2)=0. _d 0
72 gsNm(I,J,K,bi,bj,2)=0. _d 0
73 #else
74 guNm1(I,J,K,bi,bj) =0. _d 0
75 gvNm1(I,J,K,bi,bj) =0. _d 0
76 gtNm1(I,J,K,bi,bj) =0. _d 0
77 gsNm1(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 IVDConvCount(i,j,k,bi,bj) = 0. _d 0
88 ENDDO
89 ENDDO
90 ENDDO
91
92 C- 2D arrays
93 DO J=1-Oly,sNy+Oly
94 DO I=1-Olx,sNx+Olx
95 etaN(I,J,bi,bj)=0. _d 0
96 etaH(I,J,bi,bj)=0. _d 0
97 phiHydLow(I,J,bi,bj)=0. _d 0
98 ENDDO
99 ENDDO
100
101 ENDDO
102 ENDDO
103
104 RETURN
105 END

  ViewVC Help
Powered by ViewVC 1.1.22