forked from CICE-Consortium/CICE
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathice_init.F90
3574 lines (3243 loc) · 173 KB
/
ice_init.F90
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
!=======================================================================
! parameter and variable initializations
!
! authors Elizabeth C. Hunke and William H. Lipscomb, LANL
! C. M. Bitz, UW
!
! 2004 WHL: Block structure added
! 2006 ECH: Added namelist variables, warnings.
! Replaced old default initial ice conditions with 3.14 version.
! Converted to free source form (F90).
module ice_init
use ice_kinds_mod
use ice_communicate, only: my_task, master_task, ice_barrier
use ice_constants, only: c0, c1, c2, c3, c5, c12, p01, p2, p3, p5, p75, p166, &
cm_to_m
use ice_exit, only: abort_ice
use ice_fileunits, only: nu_nml, nu_diag, nml_filename, diag_type, &
ice_stdout, get_fileunit, release_fileunit, bfbflag, flush_fileunit, &
ice_IOUnitsMinUnit, ice_IOUnitsMaxUnit
#ifdef CESMCOUPLED
use ice_fileunits, only: inst_suffix, nu_diag_set
#endif
use icepack_intfc, only: icepack_warnings_flush, icepack_warnings_aborted
use icepack_intfc, only: icepack_aggregate
use icepack_intfc, only: icepack_init_trcr
use icepack_intfc, only: icepack_init_parameters
use icepack_intfc, only: icepack_init_tracer_flags
use icepack_intfc, only: icepack_init_tracer_sizes
use icepack_intfc, only: icepack_query_tracer_flags
use icepack_intfc, only: icepack_query_tracer_sizes
use icepack_intfc, only: icepack_query_tracer_indices
use icepack_intfc, only: icepack_query_parameters
implicit none
private
character(len=char_len_long), public :: &
ice_ic ! method of ice cover initialization
! 'internal' => set from ice_data_ namelist
! 'none' => no ice
! filename => read file
public :: input_data, init_state, set_state_var
!=======================================================================
contains
!=======================================================================
! Namelist variables, set to default values; may be altered
! at run time
!
! author Elizabeth C. Hunke, LANL
subroutine input_data
use ice_broadcast, only: broadcast_scalar, broadcast_array
use ice_diagnostics, only: &
diag_file, print_global, print_points, latpnt, lonpnt, &
debug_model, debug_model_step, debug_model_task, &
debug_model_i, debug_model_j, debug_model_iblk
use ice_domain, only: close_boundaries, orca_halogrid
use ice_domain_size, only: &
ncat, nilyr, nslyr, nblyr, nfsd, nfreq, &
n_iso, n_aero, n_zaero, n_algae, &
n_doc, n_dic, n_don, n_fed, n_fep, &
max_nstrm
use ice_calendar, only: &
year_init, month_init, day_init, sec_init, &
istep0, histfreq, histfreq_n, histfreq_base, &
dumpfreq, dumpfreq_n, diagfreq, dumpfreq_base, &
npt, dt, ndtd, days_per_year, use_leap_years, &
write_ic, dump_last, npt_unit
use ice_arrays_column, only: oceanmixed_ice
use ice_restart_column, only: &
restart_age, restart_FY, restart_lvl, &
restart_pond_lvl, restart_pond_topo, restart_aero, &
restart_fsd, restart_iso, restart_snow
use ice_restart_shared, only: &
restart, restart_ext, restart_coszen, use_restart_time, &
runtype, restart_file, restart_dir, runid, pointer_file, &
restart_format, restart_rearranger, restart_iotasks, restart_root, &
restart_stride, restart_deflate, restart_chunksize
use ice_history_shared, only: &
history_precision, hist_avg, history_format, history_file, incond_file, &
history_dir, incond_dir, version_name, history_rearranger, &
hist_suffix, history_iotasks, history_root, history_stride, &
history_deflate, history_chunksize, hist_time_axis
use ice_flux, only: update_ocn_f, cpl_frazil, l_mpond_fresh
use ice_flux, only: default_season
use ice_flux_bgc, only: cpl_bgc
use ice_forcing, only: &
ycycle, fyear_init, debug_forcing, &
atm_data_type, atm_data_dir, precip_units, rotate_wind, &
atm_data_format, ocn_data_format, atm_data_version, &
bgc_data_type, &
ocn_data_type, ocn_data_dir, wave_spec_file, &
oceanmixed_file, restore_ocn, trestore, &
ice_data_type, ice_data_conc, ice_data_dist, &
snw_filename, &
snw_tau_fname, snw_kappa_fname, snw_drdt0_fname, &
snw_rhos_fname, snw_Tgrd_fname, snw_T_fname
use ice_arrays_column, only: bgc_data_dir, fe_data_type
use ice_grid, only: &
grid_file, gridcpl_file, kmt_file, &
bathymetry_file, use_bathymetry, &
bathymetry_format, kmt_type, &
grid_type, grid_format, &
grid_ice, grid_ice_thrm, grid_ice_dynu, grid_ice_dynv, &
grid_ocn, grid_ocn_thrm, grid_ocn_dynu, grid_ocn_dynv, &
grid_atm, grid_atm_thrm, grid_atm_dynu, grid_atm_dynv, &
dxrect, dyrect, dxscale, dyscale, scale_dxdy, &
lonrefrect, latrefrect, save_ghte_ghtn
use ice_dyn_shared, only: &
ndte, kdyn, revised_evp, yield_curve, &
evp_algorithm, visc_method, &
seabed_stress, seabed_stress_method, &
k1, k2, alphab, threshold_hw, Ktens, &
e_yieldcurve, e_plasticpot, coriolis, &
ssh_stress, kridge, brlx, arlx, &
deltaminEVP, deltaminVP, capping, &
elasticDamp
use ice_dyn_vp, only: &
maxits_nonlin, precond, dim_fgmres, dim_pgmres, maxits_fgmres, &
maxits_pgmres, monitor_nonlin, monitor_fgmres, &
monitor_pgmres, reltol_nonlin, reltol_fgmres, reltol_pgmres, &
algo_nonlin, fpfunc_andacc, dim_andacc, reltol_andacc, &
damping_andacc, start_andacc, use_mean_vrel, ortho_type
use ice_transport_driver, only: advection, conserv_check
use ice_restoring, only: restore_ice
use ice_timers, only: timer_stats
use ice_memusage, only: memory_stats
use ice_fileunits, only: goto_nml
#ifdef CESMCOUPLED
use shr_file_mod, only: shr_file_setIO
#endif
! local variables
integer (kind=int_kind) :: &
nml_error, & ! namelist i/o error flag
n ! loop index
#ifdef CESMCOUPLED
logical :: exists
#endif
real (kind=dbl_kind) :: ustar_min, albicev, albicei, albsnowv, albsnowi, &
ahmax, R_ice, R_pnd, R_snw, dT_mlt, rsnw_mlt, emissivity, hi_min, &
mu_rdg, hs0, dpscale, rfracmin, rfracmax, pndaspect, hs1, hp1, &
a_rapid_mode, Rac_rapid_mode, aspect_rapid_mode, dSdt_slow_mode, &
phi_c_slow_mode, phi_i_mushy, kalg, atmiter_conv, Pstar, Cstar, &
sw_frac, sw_dtemp, floediam, hfrazilmin, iceruf, iceruf_ocn, &
rsnw_fall, rsnw_tmax, rhosnew, rhosmin, rhosmax, Tliquidus_max, &
windmin, drhosdwind, snwlvlfac
integer (kind=int_kind) :: ktherm, kstrength, krdg_partic, krdg_redist, natmiter, &
kitd, kcatbound, ktransport
character (len=char_len) :: shortwave, albedo_type, conduct, fbot_xfer_type, &
tfrz_option, saltflux_option, frzpnd, atmbndy, wave_spec_type, snwredist, snw_aging_table, &
congel_freeze, capping_method, snw_ssp_table
logical (kind=log_kind) :: calc_Tsfc, formdrag, highfreq, calc_strair, wave_spec, &
sw_redist, calc_dragio, use_smliq_pnd, snwgrain
logical (kind=log_kind) :: tr_iage, tr_FY, tr_lvl, tr_pond
logical (kind=log_kind) :: tr_iso, tr_aero, tr_fsd, tr_snow
logical (kind=log_kind) :: tr_pond_lvl, tr_pond_topo
integer (kind=int_kind) :: numin, numax ! unit number limits
logical (kind=log_kind) :: lcdf64 ! deprecated, backwards compatibility
integer (kind=int_kind) :: rplvl, rptopo
real (kind=dbl_kind) :: Cf, ksno, puny, ice_ref_salinity, Tocnfrz
character (len=char_len) :: abort_list
character (len=char_len) :: nml_name ! namelist name
character (len=char_len_long) :: tmpstr2
character(len=*), parameter :: subname='(input_data)'
!-----------------------------------------------------------------
! Namelist variables
!-----------------------------------------------------------------
namelist /setup_nml/ &
days_per_year, use_leap_years, istep0, npt_unit, &
dt, npt, ndtd, numin, &
runtype, runid, bfbflag, numax, &
ice_ic, restart, restart_dir, restart_file, &
restart_ext, use_restart_time, restart_format, lcdf64, &
restart_root, restart_stride, restart_iotasks, restart_rearranger, &
restart_deflate, restart_chunksize, &
pointer_file, dumpfreq, dumpfreq_n, dump_last, &
diagfreq, diag_type, diag_file, history_format,&
history_root, history_stride, history_iotasks, history_rearranger, &
hist_time_axis, &
print_global, print_points, latpnt, lonpnt, &
debug_forcing, histfreq, histfreq_n, hist_avg, &
hist_suffix, history_deflate, history_chunksize, &
history_dir, history_file, history_precision, cpl_bgc, &
histfreq_base, dumpfreq_base, timer_stats, memory_stats, &
conserv_check, debug_model, debug_model_step, &
debug_model_i, debug_model_j, debug_model_iblk, debug_model_task, &
year_init, month_init, day_init, sec_init, &
write_ic, incond_dir, incond_file, version_name
namelist /grid_nml/ &
grid_format, grid_type, grid_file, kmt_file, &
bathymetry_file, use_bathymetry, nfsd, bathymetry_format, &
ncat, nilyr, nslyr, nblyr, &
kcatbound, gridcpl_file, dxrect, dyrect, &
dxscale, dyscale, lonrefrect, latrefrect, &
scale_dxdy, &
close_boundaries, orca_halogrid, grid_ice, kmt_type, &
grid_atm, grid_ocn
namelist /tracer_nml/ &
tr_iage, restart_age, &
tr_FY, restart_FY, &
tr_lvl, restart_lvl, &
tr_pond_lvl, restart_pond_lvl, &
tr_pond_topo, restart_pond_topo, &
tr_snow, restart_snow, &
tr_iso, restart_iso, &
tr_aero, restart_aero, &
tr_fsd, restart_fsd, &
n_iso, n_aero, n_zaero, n_algae, &
n_doc, n_dic, n_don, n_fed, n_fep
namelist /thermo_nml/ &
kitd, ktherm, conduct, ksno, &
a_rapid_mode, Rac_rapid_mode, aspect_rapid_mode, &
dSdt_slow_mode, phi_c_slow_mode, phi_i_mushy, &
floediam, hfrazilmin, Tliquidus_max, hi_min
namelist /dynamics_nml/ &
kdyn, ndte, revised_evp, yield_curve, &
evp_algorithm, elasticDamp, &
brlx, arlx, ssh_stress, &
advection, coriolis, kridge, ktransport, &
kstrength, krdg_partic, krdg_redist, mu_rdg, &
e_yieldcurve, e_plasticpot, visc_method, &
maxits_nonlin, precond, dim_fgmres, &
dim_pgmres, maxits_fgmres, maxits_pgmres, monitor_nonlin, &
monitor_fgmres, monitor_pgmres, reltol_nonlin, reltol_fgmres, &
reltol_pgmres, algo_nonlin, dim_andacc, reltol_andacc, &
damping_andacc, start_andacc, fpfunc_andacc, use_mean_vrel, &
ortho_type, seabed_stress, seabed_stress_method, &
k1, k2, alphab, threshold_hw, &
deltaminEVP, deltaminVP, capping_method, &
Cf, Pstar, Cstar, Ktens
namelist /shortwave_nml/ &
shortwave, albedo_type, snw_ssp_table, &
albicev, albicei, albsnowv, albsnowi, &
ahmax, R_ice, R_pnd, R_snw, &
sw_redist, sw_frac, sw_dtemp, &
dT_mlt, rsnw_mlt, kalg
namelist /ponds_nml/ &
hs0, dpscale, frzpnd, &
rfracmin, rfracmax, pndaspect, hs1, &
hp1
namelist /snow_nml/ &
snwredist, snwgrain, rsnw_fall, rsnw_tmax, &
rhosnew, rhosmin, rhosmax, snwlvlfac, &
windmin, drhosdwind, use_smliq_pnd, snw_aging_table,&
snw_filename, snw_rhos_fname, snw_Tgrd_fname,snw_T_fname, &
snw_tau_fname, snw_kappa_fname, snw_drdt0_fname
namelist /forcing_nml/ &
formdrag, atmbndy, calc_strair, calc_Tsfc, &
highfreq, natmiter, atmiter_conv, calc_dragio, &
ustar_min, emissivity, iceruf, iceruf_ocn, &
fbot_xfer_type, update_ocn_f, l_mpond_fresh, tfrz_option, &
saltflux_option,ice_ref_salinity,cpl_frazil, congel_freeze, &
oceanmixed_ice, restore_ice, restore_ocn, trestore, &
precip_units, default_season, wave_spec_type,nfreq, &
atm_data_type, ocn_data_type, bgc_data_type, fe_data_type, &
ice_data_type, ice_data_conc, ice_data_dist, &
fyear_init, ycycle, wave_spec_file,restart_coszen, &
atm_data_dir, ocn_data_dir, bgc_data_dir, &
atm_data_format, ocn_data_format, rotate_wind, &
oceanmixed_file, atm_data_version
!-----------------------------------------------------------------
! default values
!-----------------------------------------------------------------
abort_list = ""
call icepack_query_parameters(puny_out=puny,Tocnfrz_out=Tocnfrz)
! nu_diag not yet defined
! call icepack_warnings_flush(nu_diag)
! if (icepack_warnings_aborted()) call abort_ice(error_message=subname//'Icepack Abort0', &
! file=__FILE__, line=__LINE__)
days_per_year = 365 ! number of days in a year
use_leap_years= .false.! if true, use leap years (Feb 29)
year_init = 0 ! initial year
month_init = 1 ! initial month
day_init = 1 ! initial day
sec_init = 0 ! initial second
istep0 = 0 ! no. of steps taken in previous integrations,
! real (dumped) or imagined (to set calendar)
#ifndef CESMCOUPLED
dt = 3600.0_dbl_kind ! time step, s
#endif
numin = 11 ! min allowed unit number
numax = 99 ! max allowed unit number
npt = 99999 ! total number of time steps (dt)
npt_unit = '1' ! units of npt 'y', 'm', 'd', 's', '1'
diagfreq = 24 ! how often diag output is written
debug_model = .false. ! debug output
debug_model_step = 0 ! debug model after this step number
debug_model_i = -1 ! debug model local i index
debug_model_j = -1 ! debug model local j index
debug_model_iblk = -1 ! debug model local iblk number
debug_model_task = -1 ! debug model local task number
print_points = .false. ! if true, print point data
print_global = .true. ! if true, print global diagnostic data
timer_stats = .false. ! if true, print out detailed timer statistics
memory_stats = .false. ! if true, print out memory information
bfbflag = 'off' ! off = optimized
diag_type = 'stdout'
diag_file = 'ice_diag.d'
histfreq(1) = '1' ! output frequency option for different streams
histfreq(2) = 'h' ! output frequency option for different streams
histfreq(3) = 'd' ! output frequency option for different streams
histfreq(4) = 'm' ! output frequency option for different streams
histfreq(5) = 'y' ! output frequency option for different streams
histfreq_n(:) = 1 ! output frequency
histfreq_base(:) = 'zero' ! output frequency reference date
hist_avg(:) = .true. ! if true, write time-averages (not snapshots)
hist_suffix(:) = 'x' ! appended to 'history_file' in filename when not 'x'
history_format = 'cdf1'! history file format
history_root = -99 ! history iotasks, root, stride sets pes for pio
history_stride = -99 ! history iotasks, root, stride sets pes for pio
history_iotasks = -99 ! history iotasks, root, stride sets pes for pio
history_rearranger = 'default' ! history rearranger for pio
hist_time_axis = 'end' ! History file time axis averaging interval position
history_dir = './' ! write to executable dir for default
history_file = 'iceh' ! history file name prefix
history_precision = 4 ! precision of history files
history_deflate = 0 ! compression level for netcdf4
history_chunksize(:) = 0 ! chunksize for netcdf4
write_ic = .false. ! write out initial condition
cpl_bgc = .false. ! couple bgc thru driver
incond_dir = history_dir ! write to history dir for default
incond_file = 'iceh_ic'! file prefix
dumpfreq(:) = 'x' ! restart frequency option
dumpfreq_n(:) = 1 ! restart frequency
dumpfreq_base(:) = 'init' ! restart frequency reference date
dumpfreq(1) = 'y' ! restart frequency option
dumpfreq_n(1) = 1 ! restart frequency
dump_last = .false. ! write restart on last time step
restart_dir = './' ! write to executable dir for default
restart_file = 'iced' ! restart file name prefix
restart_ext = .false. ! if true, read/write ghost cells
restart_coszen = .false. ! if true, read/write coszen
pointer_file = 'ice.restart_file'
restart_format = 'cdf1' ! restart file format
restart_root = -99 ! restart iotasks, root, stride sets pes for pio
restart_stride = -99 ! restart iotasks, root, stride sets pes for pio
restart_iotasks = -99 ! restart iotasks, root, stride sets pes for pio
restart_rearranger = 'default' ! restart rearranger for pio
restart_deflate = 0 ! compression level for netcdf4
restart_chunksize(:) = 0 ! chunksize for netcdf4
lcdf64 = .false. ! 64 bit offset for netCDF
ice_ic = 'default' ! latitude and sst-dependent
grid_format = 'bin' ! file format ('bin'=binary or 'nc'=netcdf)
grid_type = 'rectangular'! define rectangular grid internally
grid_file = 'unknown_grid_file'
grid_ice = 'B' ! underlying grid system
grid_atm = 'A' ! underlying atm forcing/coupling grid
grid_ocn = 'A' ! underlying atm forcing/coupling grid
gridcpl_file = 'unknown_gridcpl_file'
orca_halogrid = .false. ! orca haloed grid
bathymetry_file = 'unknown_bathymetry_file'
bathymetry_format = 'default'
use_bathymetry = .false.
kmt_type = 'file'
kmt_file = 'unknown_kmt_file'
version_name = 'unknown_version_name'
ncat = 0 ! number of ice thickness categories
nfsd = 1 ! number of floe size categories (1 = default)
nilyr = 0 ! number of vertical ice layers
nslyr = 0 ! number of vertical snow layers
nblyr = 0 ! number of bio layers
kitd = 1 ! type of itd conversions (0 = delta, 1 = linear)
kcatbound = 1 ! category boundary formula (0 = old, 1 = new, etc)
kdyn = 1 ! type of dynamics (-1, 0 = off, 1 = evp, 2 = eap, 3 = vp)
ndtd = 1 ! dynamic time steps per thermodynamic time step
ndte = 120 ! subcycles per dynamics timestep: ndte=dt_dyn/dte
evp_algorithm = 'standard_2d' ! EVP kernel (standard_2d=standard cice evp; shared_mem_1d=1d shared memory and no mpi
elasticDamp = 0.36_dbl_kind ! coefficient for calculating the parameter E
save_ghte_ghtn = .false. ! if true, save global hte and htn (global ext.)
brlx = 300.0_dbl_kind ! revised_evp values. Otherwise overwritten in ice_dyn_shared
arlx = 300.0_dbl_kind ! revised_evp values. Otherwise overwritten in ice_dyn_shared
revised_evp = .false. ! if true, use revised procedure for evp dynamics
yield_curve = 'ellipse' ! yield curve
kstrength = 1 ! 1 = Rothrock 75 strength, 0 = Hibler 79
Pstar = 2.75e4_dbl_kind ! constant in Hibler strength formula (kstrength = 0)
Cstar = 20._dbl_kind ! constant in Hibler strength formula (kstrength = 0)
krdg_partic = 1 ! 1 = new participation, 0 = Thorndike et al 75
krdg_redist = 1 ! 1 = new redistribution, 0 = Hibler 80
mu_rdg = 3 ! e-folding scale of ridged ice, krdg_partic=1 (m^0.5)
Cf = 17.0_dbl_kind ! ratio of ridging work to PE change in ridging
ksno = 0.3_dbl_kind ! snow thermal conductivity
dxrect = 0.0_dbl_kind ! user defined grid spacing in cm in x direction
dyrect = 0.0_dbl_kind ! user defined grid spacing in cm in y direction
lonrefrect = -156.50_dbl_kind ! lower left corner lon for rectgrid
latrefrect = 71.35_dbl_kind ! lower left corner lat for rectgrid
scale_dxdy = .false. ! apply dxscale, dyscale to rectgrid
dxscale = 1.0_dbl_kind ! user defined rectgrid x-grid scale factor (e.g., 1.02)
dyscale = 1.0_dbl_kind ! user defined rectgrid y-grid scale factor (e.g., 1.02)
close_boundaries = .false. ! true = set land on edges of grid
seabed_stress= .false. ! if true, seabed stress for landfast is on
seabed_stress_method = 'LKD'! LKD = Lemieux et al 2015, probabilistic = Dupont et al. 2022
k1 = 7.5_dbl_kind ! 1st free parameter for landfast parameterization
k2 = 15.0_dbl_kind ! 2nd free parameter (N/m^3) for landfast parametrization
alphab = 20.0_dbl_kind ! alphab=Cb factor in Lemieux et al 2015
threshold_hw = 30.0_dbl_kind ! max water depth for grounding
Ktens = 0.0_dbl_kind ! T=Ktens*P (tensile strength: see Konig and Holland, 2010)
e_yieldcurve = 2.0_dbl_kind ! VP aspect ratio of elliptical yield curve
e_plasticpot = 2.0_dbl_kind ! VP aspect ratio of elliptical plastic potential
visc_method = 'avg_zeta' ! calc viscosities at U point: avg_strength, avg_zeta
deltaminEVP = 1e-11_dbl_kind ! minimum delta for viscosities (EVP, Hunke 2001)
deltaminVP = 2e-9_dbl_kind ! minimum delta for viscosities (VP, Hibler 1979)
capping_method = 'max' ! method for capping of viscosities (max=Hibler 1979,sum=Kreyscher2000)
maxits_nonlin = 10 ! max nb of iteration for nonlinear solver
precond = 'pgmres' ! preconditioner for fgmres: 'ident' (identity), 'diag' (diagonal),
! 'pgmres' (Jacobi-preconditioned GMRES)
dim_fgmres = 50 ! size of fgmres Krylov subspace
dim_pgmres = 5 ! size of pgmres Krylov subspace
maxits_fgmres = 50 ! max nb of iteration for fgmres
maxits_pgmres = 5 ! max nb of iteration for pgmres
monitor_nonlin = .false. ! print nonlinear residual norm
monitor_fgmres = .false. ! print fgmres residual norm
monitor_pgmres = .false. ! print pgmres residual norm
ortho_type = 'mgs' ! orthogonalization procedure 'cgs' or 'mgs'
reltol_nonlin = 1e-8_dbl_kind ! nonlinear stopping criterion: reltol_nonlin*res(k=0)
reltol_fgmres = 1e-1_dbl_kind ! fgmres stopping criterion: reltol_fgmres*res(k)
reltol_pgmres = 1e-6_dbl_kind ! pgmres stopping criterion: reltol_pgmres*res(k)
algo_nonlin = 'picard' ! nonlinear algorithm: 'picard' (Picard iteration), 'anderson' (Anderson acceleration)
fpfunc_andacc = 1 ! fixed point function for Anderson acceleration:
! 1: g(x) = FMGRES(A(x),b(x)), 2: g(x) = x - A(x)x + b(x)
dim_andacc = 5 ! size of Anderson minimization matrix (number of saved previous residuals)
reltol_andacc = 1e-6_dbl_kind ! relative tolerance for Anderson acceleration
damping_andacc = 0 ! damping factor for Anderson acceleration
start_andacc = 0 ! acceleration delay factor (acceleration starts at this iteration)
use_mean_vrel = .true. ! use mean of previous 2 iterates to compute vrel
advection = 'remap' ! incremental remapping transport scheme
conserv_check = .false. ! tracer conservation check
shortwave = 'ccsm3' ! 'ccsm3' or 'dEdd' (delta-Eddington)
snw_ssp_table = 'test' ! 'test' or 'snicar' dEdd_snicar_ad table data
albedo_type = 'ccsm3' ! 'ccsm3' or 'constant'
ktherm = 1 ! -1 = OFF, 1 = BL99, 2 = mushy thermo
conduct = 'bubbly' ! 'MU71' or 'bubbly' (Pringle et al 2007)
coriolis = 'latitude' ! latitude dependent, or 'constant'
ssh_stress = 'geostrophic' ! 'geostrophic' or 'coupled'
kridge = 1 ! -1 = off, 1 = on
ktransport = 1 ! -1 = off, 1 = on
calc_Tsfc = .true. ! calculate surface temperature
update_ocn_f = .false. ! include fresh water and salt fluxes for frazil
cpl_frazil = 'fresh_ice_correction' ! type of coupling for frazil ice
ustar_min = 0.005 ! minimum friction velocity for ocean heat flux (m/s)
hi_min = p01 ! minimum ice thickness allowed (m)
iceruf = 0.0005_dbl_kind ! ice surface roughness at atmosphere interface (m)
iceruf_ocn = 0.03_dbl_kind ! under-ice roughness (m)
calc_dragio = .false. ! compute dragio from iceruf_ocn and thickness of first ocean level
emissivity = 0.985 ! emissivity of snow and ice
l_mpond_fresh = .false. ! logical switch for including meltpond freshwater
! flux feedback to ocean model
fbot_xfer_type = 'constant' ! transfer coefficient type for ocn heat flux
R_ice = 0.00_dbl_kind ! tuning parameter for sea ice
R_pnd = 0.00_dbl_kind ! tuning parameter for ponded sea ice
R_snw = 1.50_dbl_kind ! tuning parameter for snow over sea ice
dT_mlt = 1.5_dbl_kind ! change in temp to give non-melt to melt change
! in snow grain radius
rsnw_mlt = 1500._dbl_kind ! maximum melting snow grain radius
kalg = 0.60_dbl_kind ! algae absorption coefficient for 0.5 m thick layer
! 0.5 m path of 75 mg Chl a / m2
hp1 = 0.01_dbl_kind ! critical pond lid thickness for topo ponds
hs0 = 0.03_dbl_kind ! snow depth for transition to bare sea ice (m)
hs1 = 0.03_dbl_kind ! snow depth for transition to bare pond ice (m)
dpscale = c1 ! alter e-folding time scale for flushing
frzpnd = 'cesm' ! melt pond refreezing parameterization
rfracmin = 0.15_dbl_kind ! minimum retained fraction of meltwater
rfracmax = 0.85_dbl_kind ! maximum retained fraction of meltwater
pndaspect = 0.8_dbl_kind ! ratio of pond depth to area fraction
snwredist = 'none' ! type of snow redistribution
snw_aging_table = 'test' ! snow aging lookup table
snw_filename = 'unknown' ! snowtable filename
snw_tau_fname = 'unknown' ! snowtable file tau fieldname
snw_kappa_fname = 'unknown' ! snowtable file kappa fieldname
snw_drdt0_fname = 'unknown' ! snowtable file drdt0 fieldname
snw_rhos_fname = 'unknown' ! snowtable file rhos fieldname
snw_Tgrd_fname = 'unknown' ! snowtable file Tgrd fieldname
snw_T_fname = 'unknown' ! snowtable file T fieldname
snwgrain = .false. ! snow metamorphosis
use_smliq_pnd = .false. ! use liquid in snow for ponds
rsnw_fall = 100.0_dbl_kind ! radius of new snow (10^-6 m) ! advanced snow physics: 54.526 x 10^-6 m
rsnw_tmax = 1500.0_dbl_kind ! maximum snow radius (10^-6 m)
rhosnew = 100.0_dbl_kind ! new snow density (kg/m^3)
rhosmin = 100.0_dbl_kind ! minimum snow density (kg/m^3)
rhosmax = 450.0_dbl_kind ! maximum snow density (kg/m^3)
windmin = 10.0_dbl_kind ! minimum wind speed to compact snow (m/s)
drhosdwind= 27.3_dbl_kind ! wind compaction factor for snow (kg s/m^4)
snwlvlfac = 0.3_dbl_kind ! fractional increase in snow depth for bulk redistribution
albicev = 0.78_dbl_kind ! visible ice albedo for h > ahmax
albicei = 0.36_dbl_kind ! near-ir ice albedo for h > ahmax
albsnowv = 0.98_dbl_kind ! cold snow albedo, visible
albsnowi = 0.70_dbl_kind ! cold snow albedo, near IR
ahmax = 0.3_dbl_kind ! thickness above which ice albedo is constant (m)
atmbndy = 'similarity' ! Atm boundary layer: 'similarity', 'constant' or 'mixed'
default_season = 'winter' ! default forcing data, if data is not read in
fyear_init = 1900 ! first year of forcing cycle
ycycle = 1 ! number of years in forcing cycle
atm_data_format = 'bin' ! file format ('bin'=binary or 'nc'=netcdf)
atm_data_type = 'default'
atm_data_dir = ' '
atm_data_version = '_undef' ! date atm_data_file was generated.
rotate_wind = .true. ! rotate wind/stress composants to computational grid orientation
calc_strair = .true. ! calculate wind stress
formdrag = .false. ! calculate form drag
highfreq = .false. ! calculate high frequency RASM coupling
natmiter = 5 ! number of iterations for atm boundary layer calcs
atmiter_conv = c0 ! ustar convergence criteria
precip_units = 'mks' ! 'mm_per_month' or
! 'mm_per_sec' = 'mks' = kg/m^2 s
congel_freeze = 'two-step'! congelation freezing method
tfrz_option = 'mushy' ! freezing temp formulation
saltflux_option = 'constant' ! saltflux calculation
ice_ref_salinity = 4.0_dbl_kind ! Ice reference salinity for coupling
oceanmixed_ice = .false. ! if true, use internal ocean mixed layer
wave_spec_type = 'none' ! type of wave spectrum forcing
nfreq = 25 ! number of wave frequencies
wave_spec_file = ' ' ! wave forcing file name
ocn_data_format = 'bin' ! file format ('bin'=binary or 'nc'=netcdf)
bgc_data_type = 'default'
fe_data_type = 'default'
ice_data_type = 'default' ! used by some tests to initialize ice state (overall type and mask)
ice_data_conc = 'default' ! used by some tests to initialize ice state (concentration)
ice_data_dist = 'default' ! used by some tests to initialize ice state (distribution)
bgc_data_dir = 'unknown_bgc_data_dir'
ocn_data_type = 'default'
ocn_data_dir = 'unknown_ocn_data_dir'
oceanmixed_file = 'unknown_oceanmixed_file' ! ocean forcing data
restore_ocn = .false. ! restore sst if true
trestore = 90 ! restoring timescale, days (0 instantaneous)
restore_ice = .false. ! restore ice state on grid edges if true
debug_forcing = .false. ! true writes diagnostics for input forcing
latpnt(1) = 90._dbl_kind ! latitude of diagnostic point 1 (deg)
lonpnt(1) = 0._dbl_kind ! longitude of point 1 (deg)
latpnt(2) = -65._dbl_kind ! latitude of diagnostic point 2 (deg)
lonpnt(2) = -45._dbl_kind ! longitude of point 2 (deg)
#ifndef CESMCOUPLED
runid = 'unknown' ! run ID used in CESM and for machine 'bering'
runtype = 'initial' ! run type: 'initial', 'continue'
restart = .false. ! if true, read ice state from restart file
use_restart_time = .false. ! if true, use time info written in file
#endif
! extra tracers
tr_iage = .false. ! ice age
restart_age = .false. ! ice age restart
tr_FY = .false. ! ice age
restart_FY = .false. ! ice age restart
tr_lvl = .false. ! level ice
restart_lvl = .false. ! level ice restart
tr_pond_lvl = .false. ! level-ice melt ponds
restart_pond_lvl = .false. ! melt ponds restart
tr_pond_topo = .false. ! explicit melt ponds (topographic)
restart_pond_topo = .false. ! melt ponds restart
tr_snow = .false. ! advanced snow physics
restart_snow = .false. ! advanced snow physics restart
tr_iso = .false. ! isotopes
restart_iso = .false. ! isotopes restart
tr_aero = .false. ! aerosols
restart_aero = .false. ! aerosols restart
tr_fsd = .false. ! floe size distribution
restart_fsd = .false. ! floe size distribution restart
n_iso = 0
n_aero = 0
n_zaero = 0
n_algae = 0
n_doc = 0
n_dic = 0
n_don = 0
n_fed = 0
n_fep = 0
! mushy layer gravity drainage physics
a_rapid_mode = 0.5e-3_dbl_kind ! channel radius for rapid drainage mode (m)
Rac_rapid_mode = 10.0_dbl_kind ! critical Rayleigh number
aspect_rapid_mode = 1.0_dbl_kind ! aspect ratio (larger is wider)
dSdt_slow_mode = -1.5e-7_dbl_kind ! slow mode drainage strength (m s-1 K-1)
phi_c_slow_mode = 0.05_dbl_kind ! critical liquid fraction porosity cutoff
phi_i_mushy = 0.85_dbl_kind ! liquid fraction of congelation ice
Tliquidus_max = 0.00_dbl_kind ! maximum liquidus temperature of mush (C)
floediam = 300.0_dbl_kind ! min thickness of new frazil ice (m)
hfrazilmin = 0.05_dbl_kind ! effective floe diameter (m)
! shortwave redistribution in the thermodynamics
sw_redist = .false.
sw_frac = 0.9_dbl_kind
sw_dtemp = 0.02_dbl_kind
!-----------------------------------------------------------------
! read from input file
!-----------------------------------------------------------------
#ifdef CESMCOUPLED
nml_filename = 'ice_in'//trim(inst_suffix)
#endif
if (my_task == master_task) then
! open namelist file
call get_fileunit(nu_nml)
open (nu_nml, file=trim(nml_filename), status='old',iostat=nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: open file '// &
trim(nml_filename), &
file=__FILE__, line=__LINE__)
endif
! read setup_nml
nml_name = 'setup_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=setup_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '//trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read grid_nml
nml_name = 'grid_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=grid_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: ' //trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read tracer_nml
nml_name = 'tracer_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=tracer_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: ' //trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read thermo_nml
nml_name = 'thermo_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=thermo_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '//trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read dynamics_nml
nml_name = 'dynamics_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=dynamics_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '//trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read shortwave_nml
nml_name = 'shortwave_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=shortwave_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '//trim(nml_name)//' reading '//&
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read ponds_nml
nml_name = 'ponds_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=ponds_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '//trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read snow_nml
nml_name = 'snow_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=snow_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '//trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! read forcing_nml
nml_name = 'forcing_nml'
write(nu_diag,*) subname,' Reading ', trim(nml_name)
! goto namelist in file
call goto_nml(nu_nml,trim(nml_name),nml_error)
if (nml_error /= 0) then
call abort_ice(subname//'ERROR: searching for '// trim(nml_name), &
file=__FILE__, line=__LINE__)
endif
! read namelist
nml_error = 1
do while (nml_error > 0)
read(nu_nml, nml=forcing_nml,iostat=nml_error)
! check if error
if (nml_error /= 0) then
! backspace and re-read erroneous line
backspace(nu_nml)
read(nu_nml,fmt='(A)') tmpstr2
call abort_ice(subname//'ERROR: '// trim(nml_name)//' reading '// &
trim(tmpstr2), file=__FILE__, line=__LINE__)
endif
end do
! done reading namelist.
close(nu_nml)
call release_fileunit(nu_nml)
endif
!-----------------------------------------------------------------
! set up diagnostics output and resolve conflicts
!-----------------------------------------------------------------
#ifdef CESMCOUPLED
! Note in CESMCOUPLED mode diag_file is not utilized and
! runid and runtype are obtained from the driver, not from the namelist
if (my_task == master_task) then
history_file = trim(runid) // ".cice" // trim(inst_suffix) //".h"
restart_file = trim(runid) // ".cice" // trim(inst_suffix) //".r"
incond_file = trim(runid) // ".cice" // trim(inst_suffix) //".i"
! Note by tcraig - this if test is needed because the nuopc cap sets
! nu_diag before this routine is called. This creates a conflict.
! In addition, in the nuopc cap, shr_file_setIO will fail if the
! needed namelist is missing (which it is in the CIME nuopc implementation)
if (.not. nu_diag_set) then
inquire(file='ice_modelio.nml'//trim(inst_suffix),exist=exists)
if (exists) then
call get_fileUnit(nu_diag)
call shr_file_setIO('ice_modelio.nml'//trim(inst_suffix),nu_diag)
end if
endif
else
! each task gets unique ice log filename when if test is true, for debugging
if (1 == 0) then
call get_fileUnit(nu_diag)
write(tmpstr2,'(a,i4.4)') "ice.log.task_",my_task
open(nu_diag,file=tmpstr2)
endif
end if
if (trim(ice_ic) /= 'default' .and. &
trim(ice_ic) /= 'none' .and. &
trim(ice_ic) /= 'internal') then
restart = .true.
end if
#else
if (trim(diag_type) == 'file') call get_fileunit(nu_diag)
#endif
!-----------------------------------------------------------------
! broadcast namelist settings
!-----------------------------------------------------------------
call broadcast_scalar(numin, master_task)
call broadcast_scalar(numax, master_task)
call broadcast_scalar(days_per_year, master_task)
call broadcast_scalar(use_leap_years, master_task)
call broadcast_scalar(year_init, master_task)
call broadcast_scalar(month_init, master_task)
call broadcast_scalar(day_init, master_task)
call broadcast_scalar(sec_init, master_task)
call broadcast_scalar(istep0, master_task)
call broadcast_scalar(dt, master_task)
call broadcast_scalar(npt, master_task)
call broadcast_scalar(npt_unit, master_task)
call broadcast_scalar(diagfreq, master_task)
call broadcast_scalar(debug_model, master_task)
call broadcast_scalar(debug_model_step, master_task)
call broadcast_scalar(debug_model_i, master_task)
call broadcast_scalar(debug_model_j, master_task)
call broadcast_scalar(debug_model_iblk, master_task)
call broadcast_scalar(debug_model_task, master_task)
call broadcast_scalar(print_points, master_task)
call broadcast_scalar(print_global, master_task)
call broadcast_scalar(timer_stats, master_task)
call broadcast_scalar(memory_stats, master_task)
call broadcast_scalar(bfbflag, master_task)
call broadcast_scalar(diag_type, master_task)
call broadcast_scalar(diag_file, master_task)
do n = 1, max_nstrm
call broadcast_scalar(histfreq(n), master_task)
call broadcast_scalar(histfreq_base(n), master_task)
call broadcast_scalar(dumpfreq(n), master_task)
call broadcast_scalar(dumpfreq_base(n), master_task)
call broadcast_scalar(hist_suffix(n), master_task)
enddo
call broadcast_array(hist_avg, master_task)
call broadcast_array(histfreq_n, master_task)
call broadcast_array(dumpfreq_n, master_task)
call broadcast_scalar(history_dir, master_task)
call broadcast_scalar(history_file, master_task)
call broadcast_scalar(history_precision, master_task)
call broadcast_scalar(history_format, master_task)
call broadcast_scalar(history_iotasks, master_task)
call broadcast_scalar(history_root, master_task)
call broadcast_scalar(history_stride, master_task)
call broadcast_scalar(history_rearranger, master_task)
call broadcast_scalar(hist_time_axis, master_task)
call broadcast_scalar(history_deflate, master_task)
call broadcast_array(history_chunksize, master_task)
call broadcast_scalar(write_ic, master_task)
call broadcast_scalar(cpl_bgc, master_task)
call broadcast_scalar(incond_dir, master_task)
call broadcast_scalar(incond_file, master_task)
call broadcast_scalar(dump_last, master_task)
call broadcast_scalar(restart_file, master_task)
call broadcast_scalar(restart, master_task)
call broadcast_scalar(restart_dir, master_task)
call broadcast_scalar(restart_ext, master_task)
call broadcast_scalar(restart_coszen, master_task)
call broadcast_scalar(use_restart_time, master_task)
call broadcast_scalar(restart_format, master_task)
call broadcast_scalar(restart_iotasks, master_task)
call broadcast_scalar(restart_root, master_task)
call broadcast_scalar(restart_stride, master_task)
call broadcast_scalar(restart_rearranger, master_task)
call broadcast_scalar(restart_deflate, master_task)
call broadcast_array(restart_chunksize, master_task)
call broadcast_scalar(lcdf64, master_task)
call broadcast_scalar(pointer_file, master_task)
call broadcast_scalar(ice_ic, master_task)
call broadcast_scalar(grid_format, master_task)
call broadcast_scalar(dxrect, master_task)
call broadcast_scalar(dyrect, master_task)
call broadcast_scalar(scale_dxdy, master_task)
call broadcast_scalar(dxscale, master_task)
call broadcast_scalar(dyscale, master_task)
call broadcast_scalar(lonrefrect, master_task)
call broadcast_scalar(latrefrect, master_task)
call broadcast_scalar(close_boundaries, master_task)
call broadcast_scalar(grid_type, master_task)
call broadcast_scalar(grid_ice, master_task)
call broadcast_scalar(grid_ocn, master_task)
call broadcast_scalar(grid_atm, master_task)
call broadcast_scalar(grid_file, master_task)
call broadcast_scalar(gridcpl_file, master_task)
call broadcast_scalar(orca_halogrid, master_task)
call broadcast_scalar(bathymetry_file, master_task)
call broadcast_scalar(bathymetry_format, master_task)
call broadcast_scalar(use_bathymetry, master_task)
call broadcast_scalar(kmt_type, master_task)
call broadcast_scalar(kmt_file, master_task)
call broadcast_scalar(kitd, master_task)