/[MITgcm]/MITgcm/pkg/aim_compon_interf/cpl_ini_vars.F
ViewVC logotype

Contents of /MITgcm/pkg/aim_compon_interf/cpl_ini_vars.F

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


Revision 1.1 - (show annotations) (download)
Mon Dec 15 02:44:48 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint53b_pre, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52n_post, checkpoint52j_post, checkpoint52e_post, checkpoint52j_pre, checkpoint52l_post, checkpoint52k_post, checkpoint52m_post, checkpoint53a_post, checkpoint53b_post, checkpoint53, checkpoint52d_post, checkpoint52f_post, hrcube5, checkpoint52i_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3
AIM atmosphere interface S/R for exchanges with the coupler.

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

  ViewVC Help
Powered by ViewVC 1.1.22