forked from darwinproject/darwin3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
exf_readparms.F
1101 lines (1024 loc) · 41.7 KB
/
exf_readparms.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "EXF_OPTIONS.h"
SUBROUTINE EXF_READPARMS( myThid )
C ==================================================================
C SUBROUTINE exf_readparms
C ==================================================================
C
C o This routine initialises the package that calculates external
C forcing fields for a given timestep of the MITgcmUV. Parameters
C for this package are set in "data.externalforcing". Some additional
C precompiler switches have to be specified in "EXF_OPTIONS.h".
C
C started: Christian Eckert eckert@mit.edu 30-Jun-1999
C
C changed: Christian Eckert eckert@mit.edu 11-Jan-2000
C - Restructured the code in order to create a package
C for the MITgcmUV.
C Christian Eckert eckert@mit.edu 12-Feb-2000
C - Changed Routine names (package prefix: exf_)
C changed: Patrick Heimbach, heimbach@mit.edu 04-May-2000
C - changed the handling of precip and sflux with respect
C to CPP options ALLOW_BULKFORMULAE and ALLOW_ATM_TEMP
C changed: Ralf.Giering@FastOpt.de 25-Mai-20000
C - moved relaxation and climatology to extra routines
C Patrick Heimbach, heimbach@mit.edu 04-May-2000
C - added obcs parameters
C changed: Virginie Thierry, vthierry@ucsd.edu 04-June-2001
C - added new obcs parameters (for each boundaries)
C included runoff D. Stammer, Nov. 25, 2001
C included pressure forcing. heimbach@mit.edu 05-Nov-2002
C added "repeatPeriod" for cycling of forcing datasets 19-Dec-2002
C mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002
C
C ==================================================================
C SUBROUTINE exf_readparms
C ==================================================================
IMPLICIT NONE
C == global variables ==
#include "EEPARAMS.h"
#include "SIZE.h"
#include "PARAMS.h"
c#include "cal.h"
#include "EXF_PARAM.h"
#include "EXF_CONSTANTS.h"
#include "EXF_INTERP_SIZE.h"
#include "EXF_INTERP_PARAM.h"
C == routine arguments ==
INTEGER myThid
C == local variables ==
#ifdef USE_EXF_INTERPOLATION
INTEGER j
#endif /* USE_EXF_INTERPOLATION */
INTEGER iUnit
LOGICAL exf_verbose
CHARACTER*(2) exf_yftype
CHARACTER*(MAX_LEN_MBUF) msgBuf
_RL exf_inscal_sst, exf_inscal_sss
C == end of interface ==
C Surface flux data.
NAMELIST /EXF_NML_01/
& windstressmax, repeatPeriod, exf_albedo,
& ocean_emissivity, ice_emissivity, snow_emissivity,
& exf_iceCd, exf_iceCe, exf_iceCh,
& exf_scal_BulkCdn, climtempfreeze, useExfCheckRange,
& exf_iprec , exf_iprec_obcs , exf_yftype,
& exf_verbose , exf_debugLev , exf_monFreq,
& exf_adjMonFreq, exf_adjMonSelect,
& useExfYearlyFields, twoDigitYear,
& readStressOnAgrid, rotateStressOnAgrid, readStressOnCgrid,
& useAtmWind, useRelativeWind , noNegativeEvap,
& useStabilityFct_overIce, diags_opOceWeighted,
& select_ZenAlbedo, useExfZenIncoming,
& hu, ht, umin, atmrho, atmcp, cen2kel, gravity_mks,
& cdrag_1, cdrag_2, cdrag_3, cdrag_8, cdragMax, umax,
& cstanton_1, cstanton_2, cdalton,
& flamb, flami, zolmin, zref,
& cvapor_fac, cvapor_exp, cvapor_fac_ice, cvapor_exp_ice,
& humid_fac, gamma_blk, saltsat, sstExtrapol, psim_fac
NAMELIST /EXF_NML_02/
& hfluxfile, hfluxstartdate1, hfluxstartdate2,
& hfluxRepCycle, hfluxperiod, hfluxStartTime,
& atempfile, atempstartdate1, atempstartdate2,
& atempRepCycle, atempperiod, atempStartTime,
& aqhfile, aqhstartdate1, aqhstartdate2,
& aqhRepCycle, aqhperiod, aqhStartTime,
& hs_file, hs_startdate1, hs_startdate2,
& hs_RepCycle, hs_period, hs_StartTime,
& hl_file, hl_startdate1, hl_startdate2,
& hl_RepCycle, hl_period, hl_StartTime,
& sfluxfile, sfluxstartdate1, sfluxstartdate2,
& sfluxRepCycle, sfluxperiod, sfluxStartTime,
& evapfile, evapstartdate1, evapstartdate2,
& evapRepCycle, evapperiod, evapStartTime,
& precipfile, precipstartdate1, precipstartdate2,
& precipRepCycle, precipperiod, precipStartTime,
& snowprecipfile, snowprecipstartdate1, snowprecipstartdate2,
& snowprecipRepCycle, snowprecipperiod, snowprecipStartTime,
& runofffile, runoffstartdate1, runoffstartdate2,
& runoffRepCycle, runoffperiod, runoffStartTime,
& runoftempfile,
& saltflxfile, saltflxstartdate1, saltflxstartdate2,
& saltflxRepCycle, saltflxperiod, saltflxStartTime,
& ustressfile, ustressstartdate1, ustressstartdate2,
& ustressRepCycle, ustressperiod, ustressStartTime,
& vstressfile, vstressstartdate1, vstressstartdate2,
& vstressRepCycle, vstressperiod, vstressStartTime,
& uwindfile, uwindstartdate1, uwindstartdate2,
& uwindRepCycle, uwindperiod, uwindStartTime,
& vwindfile, vwindstartdate1, vwindstartdate2,
& vwindRepCycle, vwindperiod, vwindStartTime,
& wspeedfile, wspeedstartdate1, wspeedstartdate2,
& wspeedRepCycle, wspeedperiod, wspeedStartTime,
& swfluxfile, swfluxstartdate1, swfluxstartdate2,
& swfluxRepCycle, swfluxperiod, swfluxStartTime,
& lwfluxfile, lwfluxstartdate1, lwfluxstartdate2,
& lwfluxRepCycle, lwfluxperiod, lwfluxStartTime,
& swdownfile, swdownstartdate1, swdownstartdate2,
& swdownRepCycle, swdownperiod, swdownStartTime,
& lwdownfile, lwdownstartdate1, lwdownstartdate2,
& lwdownRepCycle, lwdownperiod, lwdownStartTime,
& apressurefile, apressurestartdate1, apressurestartdate2,
& apressureRepCycle, apressureperiod, apressureStartTime,
& tidePotFile, tidePotStartdate1, tidePotStartdate2,
& tidePotRepCycle, tidePotPeriod, tidePotStartTime,
& areamaskfile, areamaskstartdate1, areamaskstartdate2,
& areamaskRepCycle, areamaskperiod, areamaskStartTime,
& climsstfile, climsststartdate1, climsststartdate2,
& climsstRepCycle, climsstperiod, climsstStartTime,
& climsssfile, climsssstartdate1, climsssstartdate2,
& climsssRepCycle, climsssperiod, climsssStartTime,
& climustrfile, climustrstartdate1, climustrstartdate2,
& climustrRepCycle, climustrperiod, climustrStartTime,
& climvstrfile, climvstrstartdate1, climvstrstartdate2,
& climvstrRepCycle, climvstrperiod, climvstrStartTime,
& areamaskTauRelax, climsstTauRelax, climsssTauRelax,
& climustrTauRelax, climvstrTauRelax
NAMELIST /EXF_NML_03/
& exf_inscal_hflux, exf_inscal_sflux, exf_inscal_evap,
& exf_inscal_ustress, exf_inscal_vstress,
& exf_inscal_uwind, exf_inscal_vwind, exf_inscal_wspeed,
& exf_inscal_atemp, exf_offset_atemp,
& exf_inscal_aqh, exf_inscal_hs, exf_inscal_hl,
& exf_inscal_sst, exf_inscal_sss,
& exf_inscal_swflux, exf_inscal_lwflux, exf_inscal_precip,
& exf_inscal_runoff, exf_inscal_apressure, exf_inscal_snowprecip,
& exf_inscal_runoftemp, exf_inscal_saltflx,
& exf_inscal_swdown, exf_inscal_lwdown,
& exf_inscal_climsst, exf_inscal_climsss,
& exf_inscal_climustr, exf_inscal_climvstr,
& exf_outscal_hflux, exf_outscal_ustress, exf_outscal_vstress,
& exf_outscal_swflux, exf_outscal_sst, exf_outscal_sss,
& exf_outscal_sflux, exf_outscal_apressure,
& exf_inscal_tidePot, exf_outscal_tidePot,
& exf_inscal_areamask, exf_outscal_areamask,
& hfluxconst, atempconst, aqhconst, hs_const, hl_const,
& sfluxconst, evapconst, precipconst, snowprecipconst,
& runoffconst, runoftempconst, saltflxconst, ustressconst,
& vstressconst, uwindconst, vwindconst, wspeedconst, swfluxconst,
& lwfluxconst, swdownconst, lwdownconst, apressureconst,
& tidePotConst, areamaskconst, climsstconst, climsssconst,
& climustrconst, climvstrconst,
& hflux_exfremo_intercept, hflux_exfremo_slope,
& atemp_exfremo_intercept, atemp_exfremo_slope,
& aqh_exfremo_intercept, aqh_exfremo_slope,
& hs_exfremo_intercept, hs_exfremo_slope,
& hl_exfremo_intercept, hl_exfremo_slope,
& sflux_exfremo_intercept, sflux_exfremo_slope,
& evap_exfremo_intercept, evap_exfremo_slope,
& precip_exfremo_intercept, precip_exfremo_slope,
& snowprecip_exfremo_intercept, snowprecip_exfremo_slope,
& runoff_exfremo_intercept, runoff_exfremo_slope,
& runoftemp_exfremo_intercept, runoftemp_exfremo_slope,
& saltflx_exfremo_intercept, saltflx_exfremo_slope,
& ustress_exfremo_intercept, ustress_exfremo_slope,
& vstress_exfremo_intercept, vstress_exfremo_slope,
& uwind_exfremo_intercept, uwind_exfremo_slope,
& vwind_exfremo_intercept, vwind_exfremo_slope,
& wspeed_exfremo_intercept, wspeed_exfremo_slope,
& swflux_exfremo_intercept, swflux_exfremo_slope,
& lwflux_exfremo_intercept, lwflux_exfremo_slope,
& swdown_exfremo_intercept, swdown_exfremo_slope,
& lwdown_exfremo_intercept, lwdown_exfremo_slope,
& apressure_exfremo_intercept, apressure_exfremo_slope,
& tidePot_exfremo_intercept, tidePot_exfremo_slope,
& areamask_exfremo_intercept, areamask_exfremo_slope,
& climsst_exfremo_intercept, climsst_exfremo_slope,
& climsss_exfremo_intercept, climsss_exfremo_slope,
& climustr_exfremo_intercept, climustr_exfremo_slope,
& climvstr_exfremo_intercept, climvstr_exfremo_slope
#ifdef USE_EXF_INTERPOLATION
NAMELIST /EXF_NML_04/
& ustress_lon0, ustress_lon_inc, ustress_lat0, ustress_lat_inc,
& ustress_nlon, ustress_nlat, ustress_interpMethod,
& vstress_lon0, vstress_lon_inc, vstress_lat0, vstress_lat_inc,
& vstress_nlon, vstress_nlat, vstress_interpMethod,
& hflux_lon0, hflux_lon_inc, hflux_lat0, hflux_lat_inc,
& hflux_nlon, hflux_nlat, hflux_interpMethod,
& sflux_lon0, sflux_lon_inc, sflux_lat0, sflux_lat_inc,
& sflux_nlon, sflux_nlat, sflux_interpMethod,
& swflux_lon0, swflux_lon_inc, swflux_lat0, swflux_lat_inc,
& swflux_nlon, swflux_nlat, swflux_interpMethod,
& lwflux_lon0, lwflux_lon_inc, lwflux_lat0, lwflux_lat_inc,
& lwflux_nlon, lwflux_nlat, lwflux_interpMethod,
& atemp_lon0, atemp_lon_inc, atemp_lat0, atemp_lat_inc,
& atemp_nlon, atemp_nlat, atemp_interpMethod,
& aqh_lon0, aqh_lon_inc, aqh_lat0, aqh_lat_inc,
& aqh_nlon, aqh_nlat, aqh_interpMethod,
& hs_lon0, hs_lon_inc, hs_lat0, hs_lat_inc,
& hs_nlon, hs_nlat, hs_interpMethod,
& hl_lon0, hl_lon_inc, hl_lat0, hl_lat_inc,
& hl_nlon, hl_nlat, hl_interpMethod,
& evap_lon0, evap_lon_inc, evap_lat0, evap_lat_inc,
& evap_nlon, evap_nlat, evap_interpMethod,
& precip_lon0, precip_lon_inc, precip_lat0, precip_lat_inc,
& precip_nlon, precip_nlat, precip_interpMethod,
& runoff_lon0, runoff_lon_inc, runoff_lat0, runoff_lat_inc,
& runoff_nlon, runoff_nlat, runoff_interpMethod,
& saltflx_lon0, saltflx_lon_inc,
& saltflx_lat0, saltflx_lat_inc,
& saltflx_nlon, saltflx_nlat, saltflx_interpMethod,
& snowprecip_lon0, snowprecip_lon_inc,
& snowprecip_lat0, snowprecip_lat_inc,
& snowprecip_nlon, snowprecip_nlat, snowprecip_interpMethod,
& uwind_lon0, uwind_lon_inc, uwind_lat0, uwind_lat_inc,
& uwind_nlon, uwind_nlat, uwind_interpMethod,
& vwind_lon0, vwind_lon_inc, vwind_lat0, vwind_lat_inc,
& vwind_nlon, vwind_nlat, vwind_interpMethod,
& wspeed_lon0, wspeed_lon_inc, wspeed_lat0, wspeed_lat_inc,
& wspeed_nlon, wspeed_nlat, wspeed_interpMethod,
& swdown_lon0, swdown_lon_inc, swdown_lat0, swdown_lat_inc,
& swdown_nlon, swdown_nlat, swdown_interpMethod,
& lwdown_lon0, lwdown_lon_inc, lwdown_lat0, lwdown_lat_inc,
& lwdown_nlon, lwdown_nlat, lwdown_interpMethod,
& apressure_lon0, apressure_lon_inc,
& apressure_lat0, apressure_lat_inc,
& apressure_nlon, apressure_nlat, apressure_interpMethod,
& tidePot_lon0, tidePot_lon_inc, tidePot_lat0, tidePot_lat_inc,
& tidePot_nlon, tidePot_nlat, tidePot_interpMethod,
& areamask_lon0, areamask_lon_inc, areamask_lat0, areamask_lat_inc,
& areamask_nlon, areamask_nlat, areamask_interpMethod,
& climsst_lon0, climsst_lon_inc, climsst_lat0, climsst_lat_inc,
& climsst_nlon, climsst_nlat, climsst_interpMethod,
& climsss_lon0, climsss_lon_inc,climsss_lat0, climsss_lat_inc,
& climsss_nlon, climsss_nlat, climsss_interpMethod,
& climustr_lon0, climustr_lon_inc, climustr_lat0, climustr_lat_inc,
& climustr_nlon, climustr_nlat, climustr_interpMethod,
& climvstr_lon0, climvstr_lon_inc, climvstr_lat0, climvstr_lat_inc,
& climvstr_nlon, climvstr_nlat, climvstr_interpMethod,
& exf_output_interp
#endif /* USE_EXF_INTERPOLATION */
#ifdef ALLOW_OBCS
NAMELIST /EXF_NML_OBCS/
& useOBCSYearlyFields,
& obcsNstartdate1, obcsNstartdate2, obcsNstartTime,
& obcsNperiod, obcsNrepCycle,
& obcsSstartdate1, obcsSstartdate2, obcsSstartTime,
& obcsSperiod, obcsSrepCycle,
& obcsEstartdate1, obcsEstartdate2, obcsEstartTime,
& obcsEperiod, obcsErepCycle,
& obcsWstartdate1, obcsWstartdate2, obcsWstartTime,
& obcsWperiod, obcsWrepCycle,
& siobNstartdate1, siobNstartdate2, siobNstartTime,
& siobNperiod, siobNrepCycle,
& siobSstartdate1, siobSstartdate2, siobSstartTime,
& siobSperiod, siobSrepCycle,
& siobEstartdate1, siobEstartdate2, siobEstartTime,
& siobEperiod, siobErepCycle,
& siobWstartdate1, siobWstartdate2, siobWstartTime,
& siobWperiod, siobWrepCycle
#endif /* ALLOW_OBCS */
IF ( .NOT.useEXF ) THEN
C- pkg EXF is not used
_BEGIN_MASTER(myThid)
C- Track pkg activation status:
C print a (weak) warning if data.exf is found
CALL PACKAGES_UNUSED_MSG( 'useEXF', ' ', ' ' )
_END_MASTER(myThid)
RETURN
ENDIF
_BEGIN_MASTER(myThid)
C Set default values.
#ifdef USE_EXF_INTERPOLATION
C define interpolation default input-grid
CALL EXF_INIT_INTERP( myThid )
#endif /* USE_EXF_INTERPOLATION */
c exf_verbose = debugMode
exf_verbose = .FALSE.
exf_debugLev = debugLevel
exf_monFreq = monitorFreq
exf_adjMonFreq = adjMonitorFreq
exf_adjMonSelect = 1
useExfCheckRange = .TRUE.
select_ZenAlbedo = 0
useExfZenIncoming = .FALSE.
readStressOnAgrid = .FALSE.
rotateStressOnAgrid= .FALSE.
readStressOnCgrid = .FALSE.
#ifdef ALLOW_ATM_WIND
useAtmWind = .TRUE.
#else
useAtmWind = .FALSE.
#endif
useRelativeWind = .FALSE.
noNegativeEvap = .FALSE.
useStabilityFct_overIce = .FALSE.
diags_opOceWeighted= .TRUE.
C- default value should be set to main model parameter:
c cen2kel = celsius2K
c gravity_mks = gravity
c atmcp = atm_Cp
c humid_fac = atm_Rq <- default is zero !!!
cen2kel = 273.150 _d 0
gravity_mks = 9.81 _d 0
atmrho = 1.200 _d 0
atmcp = 1005.000 _d 0
flamb = 2500000.000 _d 0
flami = 334000.000 _d 0
cvapor_fac = 640380.000 _d 0
cvapor_exp = 5107.400 _d 0
cvapor_fac_ice = 11637800.000 _d 0
cvapor_exp_ice = 5897.800 _d 0
humid_fac = 0.606 _d 0
gamma_blk = 0.010 _d 0
saltsat = 0.980 _d 0
sstExtrapol = 0.0 _d 0
cdrag_1 = 0.0027000 _d 0
cdrag_2 = 0.0001420 _d 0
cdrag_3 = 0.0000764 _d 0
#ifdef ALLOW_DRAG_LARGEYEAGER09
cdrag_8 = -3.1480700 _d -13
cdragMax = 2.34 _d -03
umax = 33. _d 0
#else
cdrag_8 = UNSET_RL
cdragMax = UNSET_RL
umax = UNSET_RL
#endif
cstanton_1 = 0.0327 _d 0
cstanton_2 = 0.0180 _d 0
cdalton = 0.0346 _d 0
zolmin = -100.000 _d 0
psim_fac = 5.000 _d 0
zref = 10.000 _d 0
hu = 10.000 _d 0
ht = 2.000 _d 0
umin = 0.5 _d 0
exf_iceCd = 1.63 _d -3
exf_iceCe = 1.63 _d -3
exf_iceCh = 1.63 _d -3
exf_albedo = 0.1 _d 0
C-- this default is chosen to be backward compatible with
C-- an earlier setting of 5.5 = ocean_emissivity*stefanBoltzmann
ocean_emissivity = 5.50 _d -8 / 5.670 _d -8
ice_emissivity = 0.95 _d 0
snow_emissivity = 0.95 _d 0
C Calendar data.
hfluxstartdate1 = 0
hfluxstartdate2 = 0
hfluxperiod = 0.0 _d 0
hfluxconst = 0.0 _d 0
hflux_exfremo_intercept = 0.0 _d 0
hflux_exfremo_slope = 0.0 _d 0
atempstartdate1 = 0
atempstartdate2 = 0
atempperiod = 0.0 _d 0
atempconst = celsius2K
atemp_exfremo_intercept = 0.0 _d 0
atemp_exfremo_slope = 0.0 _d 0
aqhstartdate1 = 0
aqhstartdate2 = 0
aqhperiod = 0.0 _d 0
aqhconst = 0.0 _d 0
aqh_exfremo_intercept = 0.0 _d 0
aqh_exfremo_slope = 0.0 _d 0
hs_startdate1 = 0
hs_startdate2 = 0
hs_period = 0.0 _d 0
hs_const = 0.0 _d 0
hs_exfremo_intercept = 0.0 _d 0
hs_exfremo_slope = 0.0 _d 0
hl_startdate1 = 0
hl_startdate2 = 0
hl_period = 0.0 _d 0
hl_const = 0.0 _d 0
hl_exfremo_intercept = 0.0 _d 0
hl_exfremo_slope = 0.0 _d 0
sfluxstartdate1 = 0
sfluxstartdate2 = 0
sfluxperiod = 0.0 _d 0
sfluxconst = 0.0 _d 0
sflux_exfremo_intercept = 0.0 _d 0
sflux_exfremo_slope = 0.0 _d 0
evapstartdate1 = 0
evapstartdate2 = 0
evapperiod = 0.0 _d 0
evapconst = 0.0 _d 0
evap_exfremo_intercept = 0.0 _d 0
evap_exfremo_slope = 0.0 _d 0
precipstartdate1 = 0
precipstartdate2 = 0
precipperiod = 0.0 _d 0
precipconst = 0.0 _d 0
precip_exfremo_intercept = 0.0 _d 0
precip_exfremo_slope = 0.0 _d 0
snowprecipstartdate1 = 0
snowprecipstartdate2 = 0
snowprecipperiod = 0.0 _d 0
snowprecipconst = 0.0 _d 0
snowprecip_exfremo_intercept = 0.0 _d 0
snowprecip_exfremo_slope = 0.0 _d 0
runoffstartdate1 = 0
runoffstartdate2 = 0
runoffperiod = 0.0 _d 0
runoffconst = 0.0 _d 0
runoff_exfremo_intercept = 0.0 _d 0
runoff_exfremo_slope = 0.0 _d 0
runoftempconst = 0.0 _d 0
runoftemp_exfremo_intercept = 0.0 _d 0
runoftemp_exfremo_slope = 0.0 _d 0
saltflxstartdate1 = 0
saltflxstartdate2 = 0
saltflxperiod = 0.0 _d 0
saltflxconst = 0.0 _d 0
saltflx_exfremo_intercept = 0.0 _d 0
saltflx_exfremo_slope = 0.0 _d 0
ustressstartdate1 = 0
ustressstartdate2 = 0
ustressperiod = 0.0 _d 0
ustressconst = 0.0 _d 0
ustress_exfremo_intercept = 0.0 _d 0
ustress_exfremo_slope = 0.0 _d 0
vstressstartdate1 = 0
vstressstartdate2 = 0
vstressperiod = 0.0 _d 0
vstressconst = 0.0 _d 0
vstress_exfremo_intercept = 0.0 _d 0
vstress_exfremo_slope = 0.0 _d 0
uwindstartdate1 = 0
uwindstartdate2 = 0
uwindperiod = 0.0 _d 0
uwindconst = 0.0 _d 0
uwind_exfremo_intercept = 0.0 _d 0
uwind_exfremo_slope = 0.0 _d 0
vwindstartdate1 = 0
vwindstartdate2 = 0
vwindperiod = 0.0 _d 0
vwindconst = 0.0 _d 0
vwind_exfremo_intercept = 0.0 _d 0
vwind_exfremo_slope = 0.0 _d 0
wspeedstartdate1 = 0
wspeedstartdate2 = 0
wspeedperiod = 0.0 _d 0
wspeedconst = 0.0 _d 0
wspeed_exfremo_intercept = 0.0 _d 0
wspeed_exfremo_slope = 0.0 _d 0
swfluxstartdate1 = 0
swfluxstartdate2 = 0
swfluxperiod = 0.0 _d 0
swfluxconst = 0.0 _d 0
swflux_exfremo_intercept = 0.0 _d 0
swflux_exfremo_slope = 0.0 _d 0
lwfluxstartdate1 = 0
lwfluxstartdate2 = 0
lwfluxperiod = 0.0 _d 0
lwfluxconst = 0.0 _d 0
lwflux_exfremo_intercept = 0.0 _d 0
lwflux_exfremo_slope = 0.0 _d 0
swdownstartdate1 = 0
swdownstartdate2 = 0
swdownperiod = 0.0 _d 0
swdownconst = 0.0 _d 0
swdown_exfremo_intercept = 0.0 _d 0
swdown_exfremo_slope = 0.0 _d 0
lwdownstartdate1 = 0
lwdownstartdate2 = 0
lwdownperiod = 0.0 _d 0
lwdownconst = 0.0 _d 0
lwdown_exfremo_intercept = 0.0 _d 0
lwdown_exfremo_slope = 0.0 _d 0
apressurestartdate1 = 0
apressurestartdate2 = 0
apressureperiod = 0.0 _d 0
apressureconst = surf_pRef
apressure_exfremo_intercept = 0.0 _d 0
apressure_exfremo_slope = 0.0 _d 0
tidePotStartdate1 = 0
tidePotStartdate2 = 0
tidePotPeriod = 0.0 _d 0
tidePotConst = 0.0 _d 0
tidePot_exfremo_intercept = 0. _d 0
tidePot_exfremo_slope = 0. _d 0
areamaskstartdate1 = 0
areamaskstartdate2 = 0
areamaskperiod = 0.0 _d 0
areamaskTauRelax = 0.0 _d 0
areamaskconst = 0.0 _d 0
areamask_exfremo_intercept = 0. _d 0
areamask_exfremo_slope = 0. _d 0
climsststartdate1 = 0
climsststartdate2 = 0
climsstperiod = 0
climsstTauRelax = 0.0 _d 0
climsstconst = 0.0 _d 0
climsst_exfremo_intercept = 0.0 _d 0
climsst_exfremo_slope = 0.0 _d 0
climsssstartdate1 = 0
climsssstartdate2 = 0
climsssperiod = 0
climsssTauRelax = 0.0 _d 0
climsssconst = 0.0 _d 0
climsss_exfremo_intercept = 0.0 _d 0
climsss_exfremo_slope = 0.0 _d 0
climustrstartdate1 = 0
climustrstartdate2 = 0
climustrperiod = 0
climustrTauRelax = 0.0 _d 0
climustrconst = 0.0 _d 0
climustr_exfremo_intercept = 0.0 _d 0
climustr_exfremo_slope = 0.0 _d 0
climvstrstartdate1 = 0
climvstrstartdate2 = 0
climvstrperiod = 0
climvstrTauRelax = 0.0 _d 0
climvstrconst = 0.0 _d 0
climvstr_exfremo_intercept = 0.0 _d 0
climvstr_exfremo_slope = 0.0 _d 0
useOBCSYearlyFields = .FALSE.
obcsNstartdate1 = 0
obcsNstartdate2 = 0
obcsNperiod = 0.0 _d 0
obcsSstartdate1 = 0
obcsSstartdate2 = 0
obcsSperiod = 0.0 _d 0
obcsEstartdate1 = 0
obcsEstartdate2 = 0
obcsEperiod = 0.0 _d 0
obcsWstartdate1 = 0
obcsWstartdate2 = 0
obcsWperiod = 0.0 _d 0
siobNstartdate1 = UNSET_I
siobNstartdate2 = UNSET_I
siobNperiod = UNSET_RL
siobSstartdate1 = UNSET_I
siobSstartdate2 = UNSET_I
siobSperiod = UNSET_RL
siobEstartdate1 = UNSET_I
siobEstartdate2 = UNSET_I
siobEperiod = UNSET_RL
siobWstartdate1 = UNSET_I
siobWstartdate2 = UNSET_I
siobWperiod = UNSET_RL
repeatPeriod = 0.0 _d 0
windstressmax = 2.0 _d 0
exf_scal_BulkCdn = 1.0 _d 0
C Initialise freezing temperature of sea water
climtempfreeze = -1.9 _d 0
C Data files.
hfluxfile = ' '
atempfile = ' '
aqhfile = ' '
hs_file = ' '
hl_file = ' '
evapfile = ' '
precipfile = ' '
snowprecipfile = ' '
sfluxfile = ' '
runofffile = ' '
runoftempfile = ' '
saltflxfile = ' '
ustressfile = ' '
vstressfile = ' '
uwindfile = ' '
vwindfile = ' '
wspeedfile = ' '
swfluxfile = ' '
lwfluxfile = ' '
swdownfile = ' '
lwdownfile = ' '
apressurefile = ' '
tidePotFile = ' '
areamaskfile = ' '
climsstfile = ' '
climsssfile = ' '
climustrfile = ' '
climvstrfile = ' '
C Start Time.
hfluxStartTime = UNSET_RL
atempStartTime = UNSET_RL
aqhStartTime = UNSET_RL
hs_StartTime = UNSET_RL
hl_StartTime = UNSET_RL
evapStartTime = UNSET_RL
precipStartTime = UNSET_RL
snowprecipStartTime= UNSET_RL
sfluxStartTime = UNSET_RL
runoffStartTime = UNSET_RL
saltflxStartTime = UNSET_RL
ustressStartTime = UNSET_RL
vstressStartTime = UNSET_RL
uwindStartTime = UNSET_RL
vwindStartTime = UNSET_RL
wspeedStartTime = UNSET_RL
swfluxStartTime = UNSET_RL
lwfluxStartTime = UNSET_RL
swdownStartTime = UNSET_RL
lwdownStartTime = UNSET_RL
apressureStartTime = UNSET_RL
tidePotStartTime = UNSET_RL
areamaskStartTime = UNSET_RL
climsstStartTime = UNSET_RL
climsssStartTime = UNSET_RL
climustrStartTime = UNSET_RL
climvstrStartTime = UNSET_RL
obcsNstartTime = UNSET_RL
obcsSstartTime = UNSET_RL
obcsEstartTime = UNSET_RL
obcsWstartTime = UNSET_RL
siobNstartTime = UNSET_RL
siobSstartTime = UNSET_RL
siobEstartTime = UNSET_RL
siobWstartTime = UNSET_RL
C Initialise file type and field precision
exf_iprec = 32
exf_iprec_obcs = UNSET_I
exf_yftype = 'RL'
useExfYearlyFields = .FALSE.
twoDigitYear = .FALSE.
C Input scaling factors.
exf_inscal_hflux = 1. _d 0
exf_inscal_sflux = 1. _d 0
exf_inscal_ustress = 1. _d 0
exf_inscal_vstress = 1. _d 0
exf_inscal_uwind = 1. _d 0
exf_inscal_vwind = 1. _d 0
exf_inscal_wspeed = 1. _d 0
exf_inscal_swflux = 1. _d 0
exf_inscal_lwflux = 1. _d 0
exf_inscal_precip = 1. _d 0
exf_inscal_snowprecip= 1. _d 0
c exf_inscal_sst = 1. _d 0
c exf_inscal_sss = 1. _d 0
exf_inscal_atemp = 1. _d 0
exf_offset_atemp = 0. _d 0
exf_inscal_aqh = 1. _d 0
exf_inscal_hs = 1. _d 0
exf_inscal_hl = 1. _d 0
exf_inscal_evap = 1. _d 0
exf_inscal_apressure = 1. _d 0
exf_inscal_runoff = 1. _d 0
exf_inscal_runoftemp = 1. _d 0
exf_inscal_saltflx = 1. _d 0
exf_inscal_swdown = 1. _d 0
exf_inscal_lwdown = 1. _d 0
exf_inscal_climsst = 1. _d 0
exf_inscal_climsss = 1. _d 0
exf_inscal_climustr = 1. _d 0
exf_inscal_climvstr = 1. _d 0
exf_inscal_tidePot = 1. _d 0
exf_inscal_areamask = 1. _d 0
C Output scaling factors.
exf_outscal_hflux = 1. _d 0
exf_outscal_sflux = 1. _d 0
exf_outscal_ustress = 1. _d 0
exf_outscal_vstress = 1. _d 0
exf_outscal_swflux = 1. _d 0
exf_outscal_sst = 1. _d 0
exf_outscal_sss = 1. _d 0
exf_outscal_apressure= 1. _d 0
exf_outscal_tidePot = 1. _d 0
exf_outscal_areamask = 1. _d 0
#ifdef USE_EXF_INTERPOLATION
ustress_lon0 = inp_lon0
uwind_lon0 = inp_lon0
vstress_lon0 = inp_lon0
hflux_lon0 = inp_lon0
sflux_lon0 = inp_lon0
swflux_lon0 = inp_lon0
runoff_lon0 = inp_lon0
saltflx_lon0 = inp_lon0
atemp_lon0 = inp_lon0
aqh_lon0 = inp_lon0
hs_lon0 = inp_lon0
hl_lon0 = inp_lon0
evap_lon0 = inp_lon0
precip_lon0 = inp_lon0
snowprecip_lon0= inp_lon0
vwind_lon0 = inp_lon0
wspeed_lon0 = inp_lon0
lwflux_lon0 = inp_lon0
swdown_lon0 = inp_lon0
lwdown_lon0 = inp_lon0
apressure_lon0 = inp_lon0
tidePot_lon0 = inp_lon0
areamask_lon0 = inp_lon0
vstress_lat0 = inp_lat0
vwind_lat0 = inp_lat0
wspeed_lat0 = inp_lat0
ustress_lat0 = inp_lat0
hflux_lat0 = inp_lat0
sflux_lat0 = inp_lat0
runoff_lat0 = inp_lat0
saltflx_lat0 = inp_lat0
swflux_lat0 = inp_lat0
atemp_lat0 = inp_lat0
aqh_lat0 = inp_lat0
hs_lat0 = inp_lat0
hl_lat0 = inp_lat0
evap_lat0 = inp_lat0
precip_lat0 = inp_lat0
snowprecip_lat0= inp_lat0
uwind_lat0 = inp_lat0
lwflux_lat0 = inp_lat0
swdown_lat0 = inp_lat0
lwdown_lat0 = inp_lat0
apressure_lat0 = inp_lat0
tidePot_lat0 = inp_lat0
areamask_lat0 = inp_lat0
ustress_nlon = inp_gNx
ustress_nlat = inp_gNy
vstress_nlon = inp_gNx
vstress_nlat = inp_gNy
hflux_nlon = inp_gNx
hflux_nlat = inp_gNy
sflux_nlon = inp_gNx
sflux_nlat = inp_gNy
swflux_nlon = inp_gNx
swflux_nlat = inp_gNy
runoff_nlon = inp_gNx
runoff_nlat = inp_gNy
saltflx_nlon = inp_gNx
saltflx_nlat = inp_gNy
atemp_nlon = inp_gNx
atemp_nlat = inp_gNy
aqh_nlon = inp_gNx
aqh_nlat = inp_gNy
hs_nlon = inp_gNx
hs_nlat = inp_gNy
hl_nlon = inp_gNx
hl_nlat = inp_gNy
evap_nlon = inp_gNx
evap_nlat = inp_gNy
precip_nlon = inp_gNx
precip_nlat = inp_gNy
snowprecip_nlon= inp_gNx
snowprecip_nlat= inp_gNy
uwind_nlon = inp_gNx
uwind_nlat = inp_gNy
vwind_nlon = inp_gNx
vwind_nlat = inp_gNy
wspeed_nlon = inp_gNx
wspeed_nlat = inp_gNy
lwflux_nlon = inp_gNx
lwflux_nlat = inp_gNy
swdown_nlon = inp_gNx
swdown_nlat = inp_gNy
lwdown_nlon = inp_gNx
lwdown_nlat = inp_gNy
apressure_nlon = inp_gNx
apressure_nlat = inp_gNy
tidePot_nlon = inp_gNx
tidePot_nlat = inp_gNy
areamask_nlon = inp_gNx
areamask_nlat = inp_gNy
ustress_lon_inc = inp_dLon
vstress_lon_inc = inp_dLon
hflux_lon_inc = inp_dLon
sflux_lon_inc = inp_dLon
swflux_lon_inc = inp_dLon
runoff_lon_inc = inp_dLon
saltflx_lon_inc = inp_dLon
atemp_lon_inc = inp_dLon
aqh_lon_inc = inp_dLon
hs_lon_inc = inp_dLon
hl_lon_inc = inp_dLon
evap_lon_inc = inp_dLon
precip_lon_inc = inp_dLon
snowprecip_lon_inc= inp_dLon
uwind_lon_inc = inp_dLon
vwind_lon_inc = inp_dLon
wspeed_lon_inc = inp_dLon
lwflux_lon_inc = inp_dLon
swdown_lon_inc = inp_dLon
lwdown_lon_inc = inp_dLon
apressure_lon_inc = inp_dLon
tidePot_lon_inc = inp_dLon
areamask_lon_inc = inp_dLon
climsst_lon0 = inp_lon0
climsss_lon0 = inp_lon0
climustr_lon0 = inp_lon0
climvstr_lon0 = inp_lon0
climsst_lat0 = inp_lat0
climsss_lat0 = inp_lat0
climustr_lat0 = inp_lat0
climvstr_lat0 = inp_lat0
climsst_nlon = inp_gNx
climsst_nlat = inp_gNy
climsss_nlon = inp_gNx
climsss_nlat = inp_gNy
climustr_nlon = inp_gNx
climustr_nlat = inp_gNy
climvstr_nlon = inp_gNx
climvstr_nlat = inp_gNy
climsst_lon_inc = inp_dLon
climsss_lon_inc = inp_dLon
climustr_lon_inc= inp_dLon
climvstr_lon_inc= inp_dLon
DO j=1,MAX_LAT_INC
ustress_lat_inc(j) = inp_dLat(j)
vstress_lat_inc(j) = inp_dLat(j)
hflux_lat_inc(j) = inp_dLat(j)
sflux_lat_inc(j) = inp_dLat(j)
swflux_lat_inc(j) = inp_dLat(j)
runoff_lat_inc(j) = inp_dLat(j)
saltflx_lat_inc(j) = inp_dLat(j)
atemp_lat_inc(j) = inp_dLat(j)
aqh_lat_inc(j) = inp_dLat(j)
hs_lat_inc(j) = inp_dLat(j)
hl_lat_inc(j) = inp_dLat(j)
evap_lat_inc(j) = inp_dLat(j)
precip_lat_inc(j) = inp_dLat(j)
snowprecip_lat_inc(j)= inp_dLat(j)
uwind_lat_inc(j) = inp_dLat(j)
vwind_lat_inc(j) = inp_dLat(j)
wspeed_lat_inc(j) = inp_dLat(j)
lwflux_lat_inc(j) = inp_dLat(j)
swdown_lat_inc(j) = inp_dLat(j)
lwdown_lat_inc(j) = inp_dLat(j)
apressure_lat_inc(j) = inp_dLat(j)
tidePot_lat_inc(j) = inp_dLat(j)
areamask_lat_inc(j) = inp_dLat(j)
climsst_lat_inc(j) = inp_dLat(j)
climsss_lat_inc(j) = inp_dLat(j)
climustr_lat_inc(j) = inp_dLat(j)
climvstr_lat_inc(j) = inp_dLat(j)
ENDDO
ustress_interpMethod = 12
vstress_interpMethod = 22
hflux_interpMethod = 1
sflux_interpMethod = 1
swflux_interpMethod = 1
runoff_interpMethod = 1
saltflx_interpMethod = 1
atemp_interpMethod = 1
aqh_interpMethod = 1
hs_interpMethod = 1
hl_interpMethod = 1
evap_interpMethod = 1
precip_interpMethod = 1
snowprecip_interpMethod= 1
uwind_interpMethod = 12
vwind_interpMethod = 22
wspeed_interpMethod = 1
lwflux_interpMethod = 1
swdown_interpMethod = 1
lwdown_interpMethod = 1
apressure_interpMethod = 1
tidePot_interpMethod = 1
areamask_interpMethod = 1
climsst_interpMethod = 2
climsss_interpMethod = 2
climustr_interpMethod = 12
climvstr_interpMethod = 22
exf_output_interp = .FALSE.
#endif /* USE_EXF_INTERPOLATION */
C-- Next, read pkg/exf parameter file.
WRITE(msgBuf,'(A)') 'EXF_READPARMS: opening data.exf'
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
& SQUEEZE_RIGHT, myThid )
CALL OPEN_COPY_DATA_FILE(
I 'data.exf', 'EXF_READPARMS',
O iUnit,
I myThid )
WRITE(msgBuf,'(A)')
& 'EXF_READPARMS: reading EXF_NML_01'
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
& SQUEEZE_RIGHT, myThid )
READ( iUnit, nml = EXF_NML_01 )
C- Set default fldRepeatCycle to repeatPeriod
hfluxRepCycle = repeatPeriod
atempRepCycle = repeatPeriod
aqhRepCycle = repeatPeriod
hs_RepCycle = repeatPeriod
hl_RepCycle = repeatPeriod
evapRepCycle = repeatPeriod
precipRepCycle = repeatPeriod
snowprecipRepCycle = repeatPeriod
sfluxRepCycle = repeatPeriod
runoffRepCycle = repeatPeriod
saltflxRepCycle = repeatPeriod
ustressRepCycle = repeatPeriod
vstressRepCycle = repeatPeriod
uwindRepCycle = repeatPeriod
vwindRepCycle = repeatPeriod
wspeedRepCycle = repeatPeriod
swfluxRepCycle = repeatPeriod
lwfluxRepCycle = repeatPeriod
swdownRepCycle = repeatPeriod
lwdownRepCycle = repeatPeriod
apressureRepCycle = repeatPeriod
tidePotRepCycle = repeatPeriod
areamaskRepCycle = repeatPeriod
climsstRepCycle = repeatPeriod
climsssRepCycle = repeatPeriod
climustrRepCycle = repeatPeriod
climvstrRepCycle = repeatPeriod
C-
obcsNrepCycle = repeatPeriod
obcsSrepCycle = repeatPeriod
obcsErepCycle = repeatPeriod
obcsWrepCycle = repeatPeriod
siobNrepCycle = UNSET_RL
siobSrepCycle = UNSET_RL
siobErepCycle = UNSET_RL
siobWrepCycle = UNSET_RL
WRITE(msgBuf,'(A)')
& 'EXF_READPARMS: reading EXF_NML_02'
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
& SQUEEZE_RIGHT, myThid )
READ( iUnit, nml = EXF_NML_02 )
WRITE(msgBuf,'(A)')
& 'EXF_READPARMS: reading EXF_NML_03'
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
& SQUEEZE_RIGHT, myThid )
READ( iUnit, nml = EXF_NML_03 )
#ifdef USE_EXF_INTERPOLATION
WRITE(msgBuf,'(A)')
& 'EXF_READPARMS: reading EXF_NML_04'
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
& SQUEEZE_RIGHT, myThid )
READ( iUnit, nml = EXF_NML_04 )
#endif /* USE_EXF_INTERPOLATION */
#ifdef ALLOW_OBCS
IF ( useOBCS ) THEN
WRITE(msgBuf,'(A)')
& 'EXF_READPARMS: reading EXF_NML_OBCS'