1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/cpl_ini_vars.F,v 1.2 2004/05/21 20:00:48 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
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 |
#include "CPL_PARAMS.h" |
27 |
#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 |
#ifdef COMPONENT_MODULE |
35 |
C == Local variables == |
36 |
C I,J,bi,bj - Loop counters |
37 |
INTEGER I,J,bi,bj |
38 |
|
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 |
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 |
EvMPrFlux( I,J,bi,bj) = 0. |
55 |
RunOffFlux(I,J,bi,bj) = 0. |
56 |
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 |
SSTocn (I,J,bi,bj) = 0. |
62 |
SSSocn (I,J,bi,bj) = 0. |
63 |
vSqocn (I,J,bi,bj) = 0. |
64 |
ENDDO |
65 |
ENDDO |
66 |
atmSLPrTime(bi,bj) = 0. |
67 |
HeatFluxTime(bi,bj) = 0. |
68 |
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 |
EvMPrTime(bi,bj) = 0. |
77 |
RunOffTime(bi,bj) = 0. |
78 |
ROEnFxTime(bi,bj) = 0. |
79 |
saltFxTime(bi,bj) = 0. |
80 |
seaIceTime(bi,bj) = 0. |
81 |
ENDDO |
82 |
ENDDO |
83 |
|
84 |
IF ( startTime .NE. baseTime .OR. nIter0 .NE. 0 ) THEN |
85 |
CALL ATM_CPL_READ_PICKUP( nIter0, myThid ) |
86 |
ENDIF |
87 |
|
88 |
#endif /* COMPONENT_MODULE */ |
89 |
|
90 |
RETURN |
91 |
END |