1 |
jmc |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_ini_vars.F,v 1.1 2003/12/15 02:44:48 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
jmc |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE CPL_INI_VARS( myThid ) |
8 |
|
|
C /==========================================================\ |
9 |
|
|
C | SUBROUTINE CPL_INI_VARS | |
10 |
|
|
C | o Initialisation routine for arrays that are used to | |
11 |
|
|
C | buffer data that interfaces to the coupling layer. | |
12 |
|
|
C | - Atmospheric version - | |
13 |
|
|
C |==========================================================| |
14 |
|
|
C | For now this routine sets these arrays to the right | |
15 |
|
|
C | state for an initial start-up. Eventually it should | |
16 |
|
|
C | include some way to load this data from non-volatile | |
17 |
|
|
C | external storage if they are needed during a restart. | |
18 |
|
|
C \==========================================================/ |
19 |
|
|
IMPLICIT NONE |
20 |
|
|
|
21 |
|
|
C == Global variables == |
22 |
|
|
#include "SIZE.h" |
23 |
|
|
#include "EEPARAMS.h" |
24 |
|
|
#include "PARAMS.h" |
25 |
|
|
#include "GRID.h" |
26 |
jmc |
1.2 |
#include "CPL_PARAMS.h" |
27 |
jmc |
1.1 |
#include "ATMCPL.h" |
28 |
|
|
|
29 |
|
|
C == Routine arguments == |
30 |
|
|
C myThid - Thread number for this instance of the routine |
31 |
|
|
INTEGER myThid |
32 |
|
|
CEndOfInterface |
33 |
|
|
|
34 |
jmc |
1.2 |
#ifdef COMPONENT_MODULE |
35 |
jmc |
1.1 |
C == Local variables == |
36 |
jmc |
1.2 |
C I,J,bi,bj - Loop counters |
37 |
|
|
INTEGER I,J,bi,bj |
38 |
jmc |
1.1 |
|
39 |
|
|
DO bj=myByLo(myThid),myByHi(myThid) |
40 |
|
|
DO bi=myBxLo(myThid),myByLo(myThid) |
41 |
|
|
DO J=1-Oly,sNy+Oly |
42 |
|
|
DO I=1-Olx,sNx+Olx |
43 |
jmc |
1.2 |
C- Export field |
44 |
|
|
atmSLPr( I,J,bi,bj) = 0. |
45 |
|
|
HeatFlux( I,J,bi,bj) = 0. |
46 |
|
|
qShortWave(I,J,bi,bj) = 0. |
47 |
|
|
c qSensible( I,J,bi,bj) = 0. |
48 |
|
|
c qLatent( I,J,bi,bj) = 0. |
49 |
|
|
c qLongWave( I,J,bi,bj) = 0. |
50 |
|
|
c uVelGround(I,J,bi,bj) = 0. |
51 |
|
|
c vVelGround(I,J,bi,bj) = 0. |
52 |
|
|
tauX( I,J,bi,bj) = 0. |
53 |
|
|
tauY( I,J,bi,bj) = 0. |
54 |
jmc |
1.1 |
EvMPrFlux( I,J,bi,bj) = 0. |
55 |
|
|
RunOffFlux(I,J,bi,bj) = 0. |
56 |
jmc |
1.2 |
RunOffEnFx(I,J,bi,bj) = 0. |
57 |
|
|
iceSaltFlx(I,J,bi,bj) = 0. |
58 |
|
|
seaIceMass(I,J,bi,bj) = 0. |
59 |
|
|
C- Import field |
60 |
|
|
c ocMxlD (I,J,bi,bj) = 0. |
61 |
jmc |
1.1 |
SSTocn (I,J,bi,bj) = 0. |
62 |
jmc |
1.2 |
SSSocn (I,J,bi,bj) = 0. |
63 |
|
|
vSqocn (I,J,bi,bj) = 0. |
64 |
jmc |
1.1 |
ENDDO |
65 |
|
|
ENDDO |
66 |
jmc |
1.2 |
atmSLPrTime(bi,bj) = 0. |
67 |
jmc |
1.1 |
HeatFluxTime(bi,bj) = 0. |
68 |
jmc |
1.2 |
qShortwaveTime(bi,bj) = 0. |
69 |
|
|
c qSensibleTime(bi,bj) = 0. |
70 |
|
|
c qLatentTime(bi,bj) = 0. |
71 |
|
|
c qLongwaveTime(bi,bj) = 0. |
72 |
|
|
c uVelGroundTime(bi,bj) = 0. |
73 |
|
|
c vVelGroundTime(bi,bj) = 0. |
74 |
|
|
tauXTime(bi,bj) = 0. |
75 |
|
|
tauYTime(bi,bj) = 0. |
76 |
jmc |
1.1 |
EvMPrTime(bi,bj) = 0. |
77 |
|
|
RunOffTime(bi,bj) = 0. |
78 |
jmc |
1.2 |
ROEnFxTime(bi,bj) = 0. |
79 |
|
|
saltFxTime(bi,bj) = 0. |
80 |
|
|
seaIceTime(bi,bj) = 0. |
81 |
jmc |
1.1 |
ENDDO |
82 |
|
|
ENDDO |
83 |
|
|
|
84 |
jmc |
1.2 |
IF ( startTime .NE. 0. .OR. nIter0 .NE. 0 ) THEN |
85 |
|
|
CALL ATM_CPL_READ_PICKUP( nIter0, myThid ) |
86 |
jmc |
1.1 |
ENDIF |
87 |
jmc |
1.2 |
|
88 |
|
|
#endif /* COMPONENT_MODULE */ |
89 |
jmc |
1.1 |
|
90 |
|
|
RETURN |
91 |
|
|
END |