3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
|
CBOP |
7 |
|
C !ROUTINE: INI_DYNVARS |
8 |
|
C !INTERFACE: |
9 |
SUBROUTINE INI_DYNVARS( myThid ) |
SUBROUTINE INI_DYNVARS( myThid ) |
10 |
C /==========================================================\ |
C !DESCRIPTION: \bv |
11 |
C | SUBROUTINE INI_DYNVARS | |
C *==========================================================* |
12 |
C | o Initialise to zero all DYNVARS.h arrays | |
C | SUBROUTINE INI_DYNVARS |
13 |
C \==========================================================/ |
C | o Initialise to zero all DYNVARS.h arrays |
14 |
IMPLICIT NONE |
C *==========================================================* |
15 |
|
C | Sets all the State variables to zero. |
16 |
C Sets all the State variables to zero. |
C | Sets all the Gs (arrays used for multi-level time-stepping) |
17 |
C Sets all the Gs (arrays used for multi-level time-stepping) |
C | to zero. |
18 |
C to zero. |
C *==========================================================* |
19 |
|
C \ev |
20 |
|
|
21 |
|
C !USES: |
22 |
|
IMPLICIT NONE |
23 |
C === Global variables === |
C === Global variables === |
24 |
#include "SIZE.h" |
#include "SIZE.h" |
25 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
29 |
#include "GW.h" |
#include "GW.h" |
30 |
#endif |
#endif |
31 |
|
|
32 |
|
C !INPUT/OUTPUT PARAMETERS: |
33 |
C == Routine arguments == |
C == Routine arguments == |
34 |
C myThid - Number of this instance of INI_UVEL |
C myThid - Number of this instance of INI_UVEL |
35 |
INTEGER myThid |
INTEGER myThid |
|
CEndOfInterface |
|
36 |
|
|
37 |
|
C !LOCAL VARIABLES: |
38 |
C == Local variables == |
C == Local variables == |
39 |
C bi,bj - Loop counters |
C bi,bj - Loop counters |
40 |
C I,J,K |
C I,J,K |
41 |
INTEGER bi, bj |
INTEGER bi, bj |
42 |
INTEGER I, J, K |
INTEGER I, J, K |
43 |
|
CEOP |
44 |
|
|
45 |
C-- Over all tiles |
C-- Over all tiles |
46 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
67 |
gSnm1(I,J,K,bi,bj)=0. _d 0 |
gSnm1(I,J,K,bi,bj)=0. _d 0 |
68 |
|
|
69 |
#ifdef INCLUDE_CD_CODE |
#ifdef INCLUDE_CD_CODE |
|
guCD(I,J,K,bi,bj)=0. _d 0 |
|
|
gvCD(I,J,K,bi,bj)=0. _d 0 |
|
70 |
uNM1(I,J,K,bi,bj)=0. _d 0 |
uNM1(I,J,K,bi,bj)=0. _d 0 |
71 |
vNM1(I,J,K,bi,bj)=0. _d 0 |
vNM1(I,J,K,bi,bj)=0. _d 0 |
72 |
uVeld(I,J,K,bi,bj)=0. _d 0 |
uVeld(I,J,K,bi,bj)=0. _d 0 |
78 |
gWnm1(I,J,K,bi,bj)=0. _d 0 |
gWnm1(I,J,K,bi,bj)=0. _d 0 |
79 |
#endif |
#endif |
80 |
|
|
81 |
|
totPhiHyd(I,J,K,bi,bj)=0. _d 0 |
82 |
ENDDO |
ENDDO |
83 |
ENDDO |
ENDDO |
84 |
ENDDO |
ENDDO |
91 |
#ifdef INCLUDE_CD_CODE |
#ifdef INCLUDE_CD_CODE |
92 |
etaNm1(I,J,bi,bj)=0. _d 0 |
etaNm1(I,J,bi,bj)=0. _d 0 |
93 |
#endif |
#endif |
94 |
|
phiHydLow(I,J,bi,bj)=0. _d 0 |
95 |
ENDDO |
ENDDO |
96 |
ENDDO |
ENDDO |
97 |
|
|