14 |
c o This routine initialises the package that calculates external |
c o This routine initialises the package that calculates external |
15 |
c forcing fields for a given timestep of the MITgcmUV. Parameters |
c forcing fields for a given timestep of the MITgcmUV. Parameters |
16 |
c for this package are set in "data.externalforcing". Some additional |
c for this package are set in "data.externalforcing". Some additional |
17 |
c precompiler switches have to be specified in "EXF_CPPOPTIONS.h" . |
c precompiler switches have to be specified in "EXF_CPPOPTIONS.h". |
18 |
c |
c |
19 |
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
20 |
c |
c |
21 |
c changed: Christian Eckert eckert@mit.edu 11-Jan-2000 |
c changed: Christian Eckert eckert@mit.edu 11-Jan-2000 |
22 |
c - Restructured the code in order to create a package |
c - Restructured the code in order to create a package |
23 |
c for the MITgcmUV. |
c for the MITgcmUV. |
|
c |
|
24 |
c Christian Eckert eckert@mit.edu 12-Feb-2000 |
c Christian Eckert eckert@mit.edu 12-Feb-2000 |
25 |
c - Changed Routine names (package prefix: exf_) |
c - Changed Routine names (package prefix: exf_) |
26 |
c |
c changed: Patrick Heimbach, heimbach@mit.edu 04-May-2000 |
|
c Patrick Heimbach, heimbach@mit.edu 04-May-2000 |
|
27 |
c - changed the handling of precip and sflux with respect |
c - changed the handling of precip and sflux with respect |
28 |
c to CPP options ALLOW_BULKFORMULAE and ALLOW_ATM_TEMP |
c to CPP options ALLOW_BULKFORMULAE and ALLOW_ATM_TEMP |
|
c |
|
29 |
c changed: Ralf.Giering@FastOpt.de 25-Mai-20000 |
c changed: Ralf.Giering@FastOpt.de 25-Mai-20000 |
30 |
c - moved relaxation and climatology stuff to extra routines |
c - moved relaxation and climatology to extra routines |
|
c |
|
31 |
c Patrick Heimbach, heimbach@mit.edu 04-May-2000 |
c Patrick Heimbach, heimbach@mit.edu 04-May-2000 |
32 |
c - added obcs parameters |
c - added obcs parameters |
33 |
|
c changed: Virginie Thierry, vthierry@ucsd.edu 04-June-2001 |
34 |
|
c - added new obcs parameters (for each boundaries) |
35 |
c |
c |
36 |
c ================================================================== |
c ================================================================== |
37 |
c SUBROUTINE exf_readparms |
c SUBROUTINE exf_readparms |
47 |
#include "exf.h" |
#include "exf.h" |
48 |
#include "exf_param.h" |
#include "exf_param.h" |
49 |
#include "exf_constants.h" |
#include "exf_constants.h" |
50 |
|
#ifdef ALLOW_OBCS |
51 |
|
# include "OBCS_OPTIONS.h" |
52 |
|
#endif |
53 |
|
|
54 |
c == routine arguments == |
c == routine arguments == |
55 |
|
|
79 |
& vwindstartdate1, vwindstartdate2, vwindperiod, |
& vwindstartdate1, vwindstartdate2, vwindperiod, |
80 |
& swfluxstartdate1, swfluxstartdate2, swfluxperiod, |
& swfluxstartdate1, swfluxstartdate2, swfluxperiod, |
81 |
& lwfluxstartdate1, lwfluxstartdate2, lwfluxperiod, |
& lwfluxstartdate1, lwfluxstartdate2, lwfluxperiod, |
82 |
& obcsstartdate1, obcsstartdate2, obcsperiod, |
& obcsNstartdate1, obcsNstartdate2, obcsNperiod, |
83 |
|
& obcsSstartdate1, obcsSstartdate2, obcsSperiod, |
84 |
|
& obcsEstartdate1, obcsEstartdate2, obcsEperiod, |
85 |
|
& obcsWstartdate1, obcsWstartdate2, obcsWperiod, |
86 |
& hfluxfile, atempfile, aqhfile, |
& hfluxfile, atempfile, aqhfile, |
87 |
& precipfile, sfluxfile, ustressfile, |
& precipfile, sfluxfile, ustressfile, |
88 |
& vstressfile, uwindfile, vwindfile, |
& vstressfile, uwindfile, vwindfile, |
89 |
& swfluxfile, lwfluxfile, obcsfile, |
& swfluxfile, lwfluxfile, |
90 |
& exf_iprec, exf_yftype |
& exf_iprec, exf_yftype |
91 |
|
|
92 |
_BEGIN_MASTER(mythid) |
_BEGIN_MASTER(mythid) |
138 |
lwfluxstartdate2 = 0 |
lwfluxstartdate2 = 0 |
139 |
lwfluxperiod = 0.0 _d 0 |
lwfluxperiod = 0.0 _d 0 |
140 |
|
|
141 |
obcsstartdate1 = 0 |
obcsNstartdate1 = 0 |
142 |
obcsstartdate2 = 0 |
obcsNstartdate2 = 0 |
143 |
obcsperiod = 0.0 _d 0 |
obcsNperiod = 0.0 _d 0 |
144 |
|
|
145 |
|
obcsSstartdate1 = 0 |
146 |
|
obcsSstartdate2 = 0 |
147 |
|
obcsSperiod = 0.0 _d 0 |
148 |
|
|
149 |
|
obcsEstartdate1 = 0 |
150 |
|
obcsEstartdate2 = 0 |
151 |
|
obcsEperiod = 0.0 _d 0 |
152 |
|
|
153 |
|
obcsWstartdate1 = 0 |
154 |
|
obcsWstartdate2 = 0 |
155 |
|
obcsWperiod = 0.0 _d 0 |
156 |
|
|
157 |
c Data files. |
c Data files. |
158 |
hfluxfile = ' ' |
hfluxfile = ' ' |
166 |
vwindfile = ' ' |
vwindfile = ' ' |
167 |
swfluxfile = ' ' |
swfluxfile = ' ' |
168 |
lwfluxfile = ' ' |
lwfluxfile = ' ' |
|
obcsfile = ' ' |
|
169 |
|
|
170 |
c Initialise the date arrays. |
c Initialise the date arrays. |
171 |
do i = 1,4 |
do i = 1,4 |
180 |
vwindstartdate(i) = 0 |
vwindstartdate(i) = 0 |
181 |
swfluxstartdate(i) = 0 |
swfluxstartdate(i) = 0 |
182 |
lwfluxstartdate(i) = 0 |
lwfluxstartdate(i) = 0 |
183 |
obcsstartdate(i) = 0 |
obcsNstartdate(i) = 0 |
184 |
|
obcsSstartdate(i) = 0 |
185 |
|
obcsEstartdate(i) = 0 |
186 |
|
obcsWstartdate(i) = 0 |
187 |
enddo |
enddo |
188 |
|
|
189 |
c Initialise file type and field precision |
c Initialise file type and field precision |
278 |
#endif |
#endif |
279 |
|
|
280 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
281 |
call cal_FullDate( obcsstartdate1, obcsstartdate2, |
#ifdef ALLOW_OBCS_NORTH |
282 |
& obcsstartdate, mythid ) |
call cal_FullDate( obcsNstartdate1, obcsNstartdate2, |
283 |
|
& obcsNstartdate, mythid ) |
284 |
|
#endif |
285 |
|
#ifdef ALLOW_OBCS_SOUTH |
286 |
|
call cal_FullDate( obcsSstartdate1, obcsSstartdate2, |
287 |
|
& obcsSstartdate, mythid ) |
288 |
|
#endif |
289 |
|
#ifdef ALLOW_OBCS_EAST |
290 |
|
call cal_FullDate( obcsEstartdate1, obcsEstartdate2, |
291 |
|
& obcsEstartdate, mythid ) |
292 |
|
#endif |
293 |
|
#ifdef ALLOW_OBCS_WEST |
294 |
|
call cal_FullDate( obcsWstartdate1, obcsWstartdate2, |
295 |
|
& obcsWstartdate, mythid ) |
296 |
|
#endif |
297 |
#endif |
#endif |
298 |
|
|
299 |
_END_MASTER( mythid ) |
_END_MASTER( mythid ) |