Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,19 @@ def _create_drv_namelists(case, infile, confdir, nmlgen, files):
# (On a continue run CIME sets DRV_RESTART_POINTER automatically, and a
# hybrid run does not read the driver restart, so neither is checked.)
if not case.get_value("CONTINUE_RUN"):
expected_pointer = "rpointer.cpl.{}-{}".format(
case.get_value("RUN_REFDATE"), case.get_value("RUN_REFTOD")
)
refdate = case.get_value("RUN_REFDATE")
reftod = case.get_value("RUN_REFTOD")
ninst = case.get_value("NINST")

# With more than one instance the mediator writes one pointer file per
# instance (rpointer.cpl_NNNN.<date>). The driver reads only the clock
# from this file and every instance carries the same date, so instance 1
# is sufficient.
if ninst is not None and ninst > 1:
expected_pointer = "rpointer.cpl_0001.{}-{}".format(refdate, reftod)
else:
expected_pointer = "rpointer.cpl.{}-{}".format(refdate, reftod)

expect(
case.get_value("DRV_RESTART_POINTER") == expected_pointer,
"For a branch run the driver restart pointer must be set to the "
Expand Down
1 change: 1 addition & 0 deletions mediator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set(SRCFILES esmFldsExchange_cesm_mod.F90 med_fraction_mod.F90
med_phases_history_mod.F90 med_phases_prep_ocn_mod.F90
med_utils_mod.F90 esmFlds.F90 med_kind_mod.F90
med_global_sums_mod.F90
med_enthalpy_mod.F90
med_phases_prep_rof_mod.F90
med_constants_mod.F90 med_map_mod.F90
med_phases_prep_atm_mod.F90 med_phases_prep_wav_mod.F90
Expand Down
Loading
Loading