/[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.2 - (hide annotations) (download)
Tue May 29 14:01:37 2001 UTC (22 years, 11 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre1
Changes since 1.1: +91 -0 lines
Merge from branch pre38:
 o essential mods for cubed sphere
 o debugged atmosphere, dynamcis + physics (aim)
 o new packages (mom_vecinv, mom_fluxform, ...)

1 adcroft 1.2 C $Header: /u/gcmpack/models/MITgcmUV/model/src/Attic/ini_dynvars.F,v 1.1.2.1 2001/05/16 21:02:51 jmc Exp $
2     C $Name: pre38-close $
3    
4     #include "CPP_OPTIONS.h"
5    
6     SUBROUTINE INI_DYNVARS( myThid )
7     C /==========================================================\
8     C | SUBROUTINE INI_DYNVARS |
9     C | o Initialise to zero all DYNVARS.h arrays |
10     C \==========================================================/
11     IMPLICIT NONE
12    
13     C Sets all the State variables to zero.
14     C Sets all the Gs (arrays used for multi-level time-stepping)
15     C to zero.
16    
17     C === Global variables ===
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "DYNVARS.h"
22     #ifdef ALLOW_NONHYDROSTATIC
23     #include "GW.h"
24     #endif
25    
26     C == Routine arguments ==
27     C myThid - Number of this instance of INI_UVEL
28     INTEGER myThid
29     CEndOfInterface
30    
31     C == Local variables ==
32     C bi,bj - Loop counters
33     C I,J,K
34     INTEGER bi, bj
35     INTEGER I, J, K
36    
37     C-- Over all tiles
38     DO bj = myByLo(myThid), myByHi(myThid)
39     DO bi = myBxLo(myThid), myBxHi(myThid)
40    
41     C- 3D arrays
42     DO K=1,Nr
43     DO J=1-Oly,sNy+Oly
44     DO I=1-Olx,sNx+Olx
45    
46     uVel(I,J,K,bi,bj)=0.
47     vVel(I,J,K,bi,bj)=0.
48     wVel(I,J,K,bi,bj)=0.
49     theta(I,J,K,bi,bj)=0.
50     salt(I,J,K,bi,bj)=0.
51    
52     gU(I,J,K,bi,bj)=0.
53     gV(I,J,K,bi,bj)=0.
54     gT(I,J,K,bi,bj)=0.
55     gS(I,J,K,bi,bj)=0.
56     gUnm1(I,J,K,bi,bj)=0.
57     gVnm1(I,J,K,bi,bj)=0.
58     gTnm1(I,J,K,bi,bj)=0.
59     gSnm1(I,J,K,bi,bj)=0.
60    
61     #ifdef INCLUDE_CD_CODE
62     guCD(I,J,K,bi,bj)=0.
63     gvCD(I,J,K,bi,bj)=0.
64     uNM1(I,J,K,bi,bj)=0.
65     vNM1(I,J,K,bi,bj)=0.
66     uVeld(I,J,K,bi,bj)=0.
67     vVeld(I,J,K,bi,bj)=0.
68     #endif
69    
70     #ifdef ALLOW_NONHYDROSTATIC
71     gW(I,J,K,bi,bj)=0.
72     gWnm1(I,J,K,bi,bj)=0.
73     #endif
74    
75     ENDDO
76     ENDDO
77     ENDDO
78    
79     C- 2D arrays
80     DO J=1-Oly,sNy+Oly
81     DO I=1-Olx,sNx+Olx
82     etaN(I,J,bi,bj)=0.
83     etaNm1(I,J,bi,bj)=0.
84     ENDDO
85     ENDDO
86    
87     ENDDO
88     ENDDO
89    
90     RETURN
91     END

  ViewVC Help
Powered by ViewVC 1.1.22