1 |
C $Header: $ |
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 "ATMCPL.h" |
27 |
|
28 |
C == Routine arguments == |
29 |
C myThid - Thread number for this instance of the routine |
30 |
INTEGER myThid |
31 |
CEndOfInterface |
32 |
|
33 |
C == Local variables == |
34 |
C I,J,K,bi,bj - Loop counters |
35 |
INTEGER prec |
36 |
CHARACTER*(MAX_LEN_FNAM) fn |
37 |
INTEGER I,J,K,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 |
HeatFlux(I,J,bi,bj) = 0. |
45 |
EvMPrFlux( I,J,bi,bj) = 0. |
46 |
RunOffFlux(I,J,bi,bj) = 0. |
47 |
tauX( I,J,bi,bj) = 0. |
48 |
tauY( I,J,bi,bj) = 0. |
49 |
uVelGround(I,J,bi,bj) = 0. |
50 |
vVelGround(I,J,bi,bj) = 0. |
51 |
Qsensible(I,J,bi,bj) = 0. |
52 |
Qshortwave(I,J,bi,bj) = 0. |
53 |
Qlongwave(I,J,bi,bj) = 0. |
54 |
Qlatent(I,J,bi,bj) = 0. |
55 |
C Import field |
56 |
SSTocn (I,J,bi,bj) = 0. |
57 |
ENDDO |
58 |
ENDDO |
59 |
HeatFluxTime(bi,bj) = 0. |
60 |
EvMPrTime(bi,bj) = 0. |
61 |
RunOffTime(bi,bj) = 0. |
62 |
tauXTime(bi,bj) = 0. |
63 |
tauYTime(bi,bj) = 0. |
64 |
uVelGroundTime(bi,bj) = 0. |
65 |
vVelGroundTime(bi,bj) = 0. |
66 |
qSensibleTime(bi,bj) = 0. |
67 |
qLatentTime(bi,bj) = 0. |
68 |
qLongwaveTime(bi,bj) = 0. |
69 |
qShortwaveTime(bi,bj) = 0. |
70 |
ENDDO |
71 |
ENDDO |
72 |
|
73 |
IF ( startTime .NE. 0. .OR. nIter0 .NE. 0 ) THEN |
74 |
prec=precFloat64 |
75 |
WRITE(fn,'(A,I10.10)') 'pickup_cpl.',nIter0 |
76 |
CALL MDSREADFIELD(fn,prec,'RL',1,SSTocn , 1,myThid) |
77 |
CALL MDSREADFIELD(fn,prec,'RL',1,HeatFlux , 2,myThid) |
78 |
CALL MDSREADFIELD(fn,prec,'RL',1,tauX , 3,myThid) |
79 |
CALL MDSREADFIELD(fn,prec,'RL',1,tauY , 4,myThid) |
80 |
CALL MDSREADFIELD(fn,prec,'RL',1,EvMPrFlux , 5,myThid) |
81 |
CALL MDSREADFIELD(fn,prec,'RL',1,RunOffFlux, 6,myThid) |
82 |
CALL MDSREADFIELD(fn,prec,'RL',1,uVelGround, 7,myThid) |
83 |
CALL MDSREADFIELD(fn,prec,'RL',1,vVelGround, 8,myThid) |
84 |
CALL MDSREADFIELD(fn,prec,'RL',1,qLatent , 9,myThid) |
85 |
CALL MDSREADFIELD(fn,prec,'RL',1,qSensible ,10,myThid) |
86 |
CALL MDSREADFIELD(fn,prec,'RL',1,qLongwave ,11,myThid) |
87 |
CALL MDSREADFIELD(fn,prec,'RL',1,qShortwave,12,myThid) |
88 |
ENDIF |
89 |
|
90 |
RETURN |
91 |
END |