/[MITgcm]/MITgcm/model/src/ini_dynvars.F
ViewVC logotype

Diff of /MITgcm/model/src/ini_dynvars.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by heimbach, Fri Jul 13 14:26:57 2001 UTC revision 1.5.2.1 by adcroft, Tue Feb 26 16:04:47 2002 UTC
# Line 3  C $Name$ Line 3  C $Name$
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"
# Line 23  C     === Global variables === Line 29  C     === Global variables ===
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)
# Line 80  C-      2D arrays Line 88  C-      2D arrays
88          DO J=1-Oly,sNy+Oly          DO J=1-Oly,sNy+Oly
89           DO I=1-Olx,sNx+Olx           DO I=1-Olx,sNx+Olx
90            etaN(I,J,bi,bj)=0. _d 0            etaN(I,J,bi,bj)=0. _d 0
91              etaH(I,J,bi,bj)=0. _d 0
92    #ifdef INCLUDE_CD_CODE
93            etaNm1(I,J,bi,bj)=0. _d 0            etaNm1(I,J,bi,bj)=0. _d 0
94    #endif
95           ENDDO           ENDDO
96          ENDDO          ENDDO
97    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5.2.1

  ViewVC Help
Powered by ViewVC 1.1.22