#############################################
####  UFS Run-Time Configuration File  ######
#############################################

# ESMF #
logKindFlag:            @[esmf_logkind]
globalResourceControl:  false

# EARTH #
EARTH_component_list: MED ATM OCN ICE
EARTH_attributes::
  Verbosity = 0
::

# MED #
MED_model:                      @[med_model]
MED_petlist_bounds:             @[med_petlist_bounds]
::

# ATM #
ATM_model:                      @[atm_model]
ATM_petlist_bounds:             @[atm_petlist_bounds]
ATM_attributes::
  Verbosity = 0
  DumpFields = @[DumpFields]
  ProfileMemory = false
  OverwriteSlice = true
::

# OCN #
OCN_model:                      @[ocn_model]
OCN_petlist_bounds:             @[ocn_petlist_bounds]
OCN_attributes::
  Verbosity = 0
  DumpFields = @[DumpFields]
  ProfileMemory = false
  OverwriteSlice = true
  mesh_ocn = @[MESH_OCN]
  use_coldstart = @[use_coldstart]
  use_mommesh = @[use_mommesh]
::

# ICE #
ICE_model:                      @[ice_model]
ICE_petlist_bounds:             @[ice_petlist_bounds]
ICE_attributes::
  Verbosity = 0
  DumpFields = @[DumpFields]
  ProfileMemory = false
  OverwriteSlice = true
  mesh_ice = @[MESH_ICE]
  eps_imesh = @[eps_imesh]
  stop_n = @[RESTART_N]
  stop_option = nhours
  stop_ymd = -999
::

# CMEPS warm run sequence
runSeq::
@@[coupling_interval_slow_sec]
   MED med_phases_prep_ocn_avg
   MED -> OCN :remapMethod=redist
   OCN
   @@[coupling_interval_fast_sec]
     MED med_phases_prep_atm
     MED med_phases_prep_ice
     MED -> ATM :remapMethod=redist
     MED -> ICE :remapMethod=redist
     ATM
     ICE
     ATM -> MED :remapMethod=redist
     MED med_phases_post_atm
     ICE -> MED :remapMethod=redist
     MED med_phases_post_ice
     MED med_phases_ocnalb_run
     MED med_phases_prep_ocn_accum
   @
   OCN -> MED :remapMethod=redist
   MED med_phases_post_ocn
   MED med_phases_restart_write
@
::

# CMEPS variables

DRIVER_attributes::
::

MED_attributes::
      ATM_model = @[atm_model]
      ICE_model = @[ice_model]
      OCN_model = @[ocn_model]
      coupling_mode = @[CPLMODE]
      history_tile_atm = @[ATMTILESIZE]
      pio_rearranger = @[pio_rearranger]
      ocean_albedo_limit = @[ocean_albedo_limit]
::

ALLCOMP_attributes::
      ScalarFieldCount = 2
      ScalarFieldIdxGridNX = 1
      ScalarFieldIdxGridNY = 2
      ScalarFieldName = cpl_scalars
      start_type = @[RUNTYPE]
      restart_dir = @[CMEPS_RESTART_DIR]
      case_name = ufs.cpld
      restart_n = @[RESTART_N]
      restart_option = nhours
      restart_ymd = -999
      dbug_flag = @[cap_dbug_flag]
      stop_n = @[FHMAX]
      stop_option = nhours
      stop_ymd = -999
      orb_eccen = 1.e36
      orb_iyear = 2000
      orb_iyear_align = 2000
      orb_mode = fixed_year
      orb_mvelp = 1.e36
      orb_obliq = 1.e36
::