1 |
jmc |
1.3 |
C $Header: /u/gcmpack/MITgcm/pkg/cd_code/cd_code_ini_vars.F,v 1.2 2003/10/30 18:44:26 heimbach Exp $ |
2 |
edhill |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "CD_CODE_OPTIONS.h" |
5 |
|
|
|
6 |
heimbach |
1.2 |
SUBROUTINE CD_CODE_INI_VARS( myThid ) |
7 |
edhill |
1.1 |
|
8 |
|
|
IMPLICIT NONE |
9 |
|
|
C === Global variables === |
10 |
|
|
#include "SIZE.h" |
11 |
|
|
#include "EEPARAMS.h" |
12 |
|
|
#include "PARAMS.h" |
13 |
|
|
#include "CD_CODE_VARS.h" |
14 |
|
|
|
15 |
|
|
C == Routine arguments == |
16 |
|
|
C myThid - Number of this instance of INI_UVEL |
17 |
|
|
INTEGER myThid |
18 |
|
|
|
19 |
|
|
C !LOCAL VARIABLES: |
20 |
|
|
C == Local variables == |
21 |
|
|
C bi,bj - Loop counters |
22 |
|
|
C I,J,K |
23 |
|
|
INTEGER bi, bj |
24 |
|
|
INTEGER I, J, K |
25 |
|
|
CHARACTER*(MAX_LEN_FNAM) fn |
26 |
|
|
CHARACTER*(10) suff |
27 |
|
|
INTEGER prec |
28 |
|
|
CEOP |
29 |
|
|
|
30 |
|
|
#ifdef ALLOW_CD_CODE |
31 |
|
|
|
32 |
|
|
C-- Over all tiles |
33 |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
34 |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
35 |
|
|
|
36 |
|
|
C- 3D arrays |
37 |
|
|
DO K=1,Nr |
38 |
|
|
DO J=1-Oly,sNy+Oly |
39 |
|
|
DO I=1-Olx,sNx+Olx |
40 |
|
|
uNM1(I,J,K,bi,bj)=0. _d 0 |
41 |
|
|
vNM1(I,J,K,bi,bj)=0. _d 0 |
42 |
|
|
uVeld(I,J,K,bi,bj)=0. _d 0 |
43 |
|
|
vVeld(I,J,K,bi,bj)=0. _d 0 |
44 |
|
|
ENDDO |
45 |
|
|
ENDDO |
46 |
|
|
ENDDO |
47 |
|
|
|
48 |
|
|
C- 2D arrays |
49 |
|
|
DO J=1-Oly,sNy+Oly |
50 |
|
|
DO I=1-Olx,sNx+Olx |
51 |
|
|
etaNm1(I,J,bi,bj)=0. _d 0 |
52 |
|
|
ENDDO |
53 |
|
|
ENDDO |
54 |
|
|
|
55 |
|
|
ENDDO |
56 |
|
|
ENDDO |
57 |
jmc |
1.3 |
|
58 |
|
|
IF ( nIter0.NE.0 ) THEN |
59 |
|
|
CALL CD_CODE_READ_CHECKPOINT( nIter0, myThid ) |
60 |
|
|
ENDIF |
61 |
edhill |
1.1 |
|
62 |
|
|
#endif /* ALLOW_CD_CODE */ |
63 |
|
|
|
64 |
|
|
RETURN |
65 |
|
|
END |