/[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.16 - (hide annotations) (download)
Tue Nov 8 02:10:49 2005 UTC (18 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint57y_post, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58y_post, checkpoint58t_post, checkpoint58m_post, checkpoint58w_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58r_post, checkpoint58n_post, checkpoint59a, checkpoint59b, checkpoint58k_post, checkpoint58v_post, checkpoint58l_post, checkpoint58g_post, checkpoint58x_post, checkpoint58h_post, checkpoint58j_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post
Changes since 1.15: +1 -10 lines
initialise NH-variables in specific S/R: ini_nh_vars.F

1 jmc 1.16 C $Header: /u/gcmpack/MITgcm/model/src/ini_dynvars.F,v 1.15 2005/04/15 14:02:54 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    
29 cnh 1.5 C !INPUT/OUTPUT PARAMETERS:
30 adcroft 1.2 C == Routine arguments ==
31     C myThid - Number of this instance of INI_UVEL
32     INTEGER myThid
33    
34 cnh 1.5 C !LOCAL VARIABLES:
35 adcroft 1.2 C == Local variables ==
36     C bi,bj - Loop counters
37     C I,J,K
38     INTEGER bi, bj
39     INTEGER I, J, K
40 cnh 1.5 CEOP
41 adcroft 1.2
42     C-- Over all tiles
43     DO bj = myByLo(myThid), myByHi(myThid)
44     DO bi = myBxLo(myThid), myBxHi(myThid)
45    
46     C- 3D arrays
47     DO K=1,Nr
48     DO J=1-Oly,sNy+Oly
49     DO I=1-Olx,sNx+Olx
50    
51 heimbach 1.3 uVel(I,J,K,bi,bj)=0. _d 0
52     vVel(I,J,K,bi,bj)=0. _d 0
53     wVel(I,J,K,bi,bj)=0. _d 0
54     theta(I,J,K,bi,bj)=0. _d 0
55     salt(I,J,K,bi,bj)=0. _d 0
56    
57     gU(I,J,K,bi,bj)=0. _d 0
58     gV(I,J,K,bi,bj)=0. _d 0
59     gT(I,J,K,bi,bj)=0. _d 0
60     gS(I,J,K,bi,bj)=0. _d 0
61 jmc 1.15 #ifdef ALLOW_ADAMSBASHFORTH_3
62     guNm(I,J,K,bi,bj,1)=0. _d 0
63     gvNm(I,J,K,bi,bj,1)=0. _d 0
64     gtNm(I,J,K,bi,bj,1)=0. _d 0
65     gsNm(I,J,K,bi,bj,1)=0. _d 0
66     guNm(I,J,K,bi,bj,2)=0. _d 0
67     gvNm(I,J,K,bi,bj,2)=0. _d 0
68     gtNm(I,J,K,bi,bj,2)=0. _d 0
69     gsNm(I,J,K,bi,bj,2)=0. _d 0
70     #else
71     guNm1(I,J,K,bi,bj) =0. _d 0
72     gvNm1(I,J,K,bi,bj) =0. _d 0
73     gtNm1(I,J,K,bi,bj) =0. _d 0
74     gsNm1(I,J,K,bi,bj) =0. _d 0
75     #endif
76 adcroft 1.2
77 jmc 1.8 totPhiHyd(I,J,K,bi,bj)=0. _d 0
78 jmc 1.14 IVDConvCount(i,j,k,bi,bj) = 0. _d 0
79 adcroft 1.2 ENDDO
80     ENDDO
81     ENDDO
82    
83     C- 2D arrays
84     DO J=1-Oly,sNy+Oly
85     DO I=1-Olx,sNx+Olx
86 heimbach 1.3 etaN(I,J,bi,bj)=0. _d 0
87 jmc 1.4 etaH(I,J,bi,bj)=0. _d 0
88 mlosch 1.7 phiHydLow(I,J,bi,bj)=0. _d 0
89 adcroft 1.2 ENDDO
90     ENDDO
91    
92     ENDDO
93     ENDDO
94    
95     RETURN
96     END

  ViewVC Help
Powered by ViewVC 1.1.22