Skip to content

Commit

Permalink
Only set anomaly_forcing for DATM SSP compsets.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Sep 5, 2024
1 parent c298da7 commit 274b06b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datm/cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
anomaly_forcing = nmlgen.get_value("anomaly_forcing")
if anomaly_forcing[0] is None:
# If not in namelist, check whether it's an SSP compset
ssp = re.search(r"^SSP\d+", compset).group()
ssp = re.search(r"^SSP\d+_DATM", compset).group()
if ssp:
ssp = ssp.replace("_DATM", "")
anomaly_forcing = ["Anomaly.Forcing.cmip6." + ssp.lower()]
nmlgen.set_value("anomaly_forcing", anomaly_forcing)

Expand Down

0 comments on commit 274b06b

Please sign in to comment.