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

Annotation of /MITgcm/pkg/atm_compon_interf/cpl_ini_vars.F

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


Revision 1.6 - (hide annotations) (download)
Wed Jan 6 00:42:51 2016 UTC (8 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65s, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, HEAD
Changes since 1.5: +59 -31 lines
- to save memory space in ATM & OCN comp: add some #ifdef ALLOW_${PKG} around
  optionally exchanged fields (ALLOW_LAND for RunOff, ALLOW_THSICE for seaice,
   ALLOW_AIM for CO2)
- rename:   fracIce     -> sIceFrac_cpl (<- match coupler var name)
  + in ATM: fracIceTime -> sIceFracTime ; seaIceTime -> sIceMassTime.
- add 2-way thSIce vars exchange ; add Salt-Plume flux

1 jmc 1.6 C $Header: /u/gcmpack/MITgcm/pkg/atm_compon_interf/cpl_ini_vars.F,v 1.5 2015/11/12 01:01:58 jmc Exp $
2 jmc 1.2 C $Name: $
3 jmc 1.1
4 jmc 1.5 #include "ATM_CPL_OPTIONS.h"
5 jmc 1.1
6 jmc 1.4 CBOP
7     C !ROUTINE: CPL_INI_VARS
8     C !INTERFACE:
9 jmc 1.1 SUBROUTINE CPL_INI_VARS( myThid )
10 jmc 1.4
11     C !DESCRIPTION: \bv
12     C *==========================================================*
13     C | SUBROUTINE CPL_INI_VARS
14     C | o Initialisation routine for arrays that are used to
15     C | buffer data that interfaces to the coupling layer.
16     C | - Atmospheric version -
17     C *==========================================================*
18     C | For now this routine sets these arrays to the right
19     C | state for an initial start-up. Eventually it should
20     C | include some way to load this data from non-volatile
21     C | external storage if they are needed during a restart.
22     C *==========================================================*
23     C \ev
24    
25     C !USES:
26 jmc 1.1 IMPLICIT NONE
27    
28     C == Global variables ==
29     #include "SIZE.h"
30     #include "EEPARAMS.h"
31     #include "PARAMS.h"
32     #include "GRID.h"
33 jmc 1.2 #include "CPL_PARAMS.h"
34 jmc 1.1 #include "ATMCPL.h"
35    
36 jmc 1.4 C !INPUT/OUTPUT PARAMETERS:
37 jmc 1.1 C == Routine arguments ==
38 jmc 1.4 C myThid :: Thread number for this instance of the routine
39 jmc 1.1 INTEGER myThid
40 jmc 1.4 CEOP
41 jmc 1.1
42 jmc 1.2 #ifdef COMPONENT_MODULE
43 jmc 1.1 C == Local variables ==
44 jmc 1.5 C i,j,bi,bj :: Loop counters
45     INTEGER i,j,bi,bj
46 jmc 1.1
47     DO bj=myByLo(myThid),myByHi(myThid)
48     DO bi=myBxLo(myThid),myByLo(myThid)
49 jmc 1.5 DO J=1-OLy,sNy+OLy
50     DO I=1-OLx,sNx+OLx
51 jmc 1.2 C- Export field
52 jmc 1.6 atmSLPr (i,j,bi,bj) = 0.
53     HeatFlux (i,j,bi,bj) = 0.
54     qShortWave (i,j,bi,bj) = 0.
55     tauX (i,j,bi,bj) = 0.
56     tauY (i,j,bi,bj) = 0.
57     EvMPrFlux (i,j,bi,bj) = 0.
58     #ifdef ALLOW_LAND
59     RunOffFlux (i,j,bi,bj) = 0.
60     RunOffEnFx (i,j,bi,bj) = 0.
61     #endif /* ALLOW_LAND */
62     #ifdef ALLOW_THSICE
63     iceSaltFlx (i,j,bi,bj) = 0.
64     seaIceMass (i,j,bi,bj) = 0.
65     saltPlmFlx_cpl(i,j,bi,bj) = 0.
66     #endif /* ALLOW_THSICE */
67     #ifdef ALLOW_AIM
68     airCO2 (i,j,bi,bj) = 0.
69     sWSpeed (i,j,bi,bj) = 0.
70     #endif /* ALLOW_AIM */
71     #ifdef ALLOW_THSICE
72     sIceFrac_cpl (i,j,bi,bj) = 0.
73     sIceThick_cpl (i,j,bi,bj) = 0.
74     sIceSnowH_cpl (i,j,bi,bj) = 0.
75     sIceQ1_cpl (i,j,bi,bj) = 0.
76     sIceQ2_cpl (i,j,bi,bj) = 0.
77     #endif /* ALLOW_THSICE */
78 jmc 1.2 C- Import field
79 jmc 1.6 c ocMxlD (i,j,bi,bj) = 0.
80     SSTocn (i,j,bi,bj) = 0.
81     SSSocn (i,j,bi,bj) = 0.
82     vSqocn (i,j,bi,bj) = 0.
83     #ifdef ALLOW_AIM
84     flxCO2ocn (i,j,bi,bj) = 0.
85     #endif /* ALLOW_AIM */
86 jmc 1.1 ENDDO
87     ENDDO
88 jmc 1.6 atmSLPrTime (bi,bj) = 0.
89     HeatFluxTime (bi,bj) = 0.
90 jmc 1.2 qShortwaveTime(bi,bj) = 0.
91 jmc 1.6 tauXTime (bi,bj) = 0.
92     tauYTime (bi,bj) = 0.
93     EvMPrTime (bi,bj) = 0.
94     #ifdef ALLOW_LAND
95     RunOffTime (bi,bj) = 0.
96     ROEnFxTime (bi,bj) = 0.
97     #endif
98     #ifdef ALLOW_THSICE
99     saltFxTime (bi,bj) = 0.
100     sIceMassTime (bi,bj) = 0.
101     saltPlmFlxTime(bi,bj) = 0.
102     #endif
103     #ifdef ALLOW_AIM
104     airCO2Time (bi,bj) = 0.
105     sWSpeedTime (bi,bj) = 0.
106     #endif /* ALLOW_AIM */
107     #ifdef ALLOW_THSICE
108     sIceFracTime (bi,bj) = 0.
109     sIceThickTime (bi,bj) = 0.
110     sIceSnowHTime (bi,bj) = 0.
111     sIceQ1Time (bi,bj) = 0.
112     sIceQ2Time (bi,bj) = 0.
113     #endif
114 jmc 1.1 ENDDO
115     ENDDO
116    
117 jmc 1.3 IF ( startTime .NE. baseTime .OR. nIter0 .NE. 0 ) THEN
118 jmc 1.2 CALL ATM_CPL_READ_PICKUP( nIter0, myThid )
119 jmc 1.1 ENDIF
120 jmc 1.2
121     #endif /* COMPONENT_MODULE */
122 jmc 1.1
123     RETURN
124     END

  ViewVC Help
Powered by ViewVC 1.1.22