Skip to content

Commit

Permalink
Merge pull request #360 from mvertens/feature/dms_and_bromo
Browse files Browse the repository at this point in the history
new mechanism for configuring noresm to send dms and bromo from ocn -> atm
  • Loading branch information
TomasTorsvik authored Jun 28, 2024
2 parents 9e5ae13 + 4917926 commit 30fdd27
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,20 @@ def buildnml(case, caseroot, compname):
fwrite.write(line)
shutil.move(namelist_file_temp, namelist_file)

# change xml variable settings if appropriate
# Note - this does not change the blom namelist - it changes xml variables that are then
# used by cmeps to change attributes that are sent to the atm
# TODO: add n2o_emis and nh3_emis logic
if "ecosys" in case.get_value("BLOM_TRACER_MODULES"):
dms_emis = case.get_value("DMS_EMIS")
if dms_emis is not None or dms_emis is False:
case.set_value('DMS_EMIS_OCN','TRUE')
print (" ***Resetting DMS_EMIS_OCN to TRUE***")
brf_emis = pg_blom.get_value('use_bromo')
if brf_emis == ".true.":
case.set_value('BRF_EMIS_OCN','TRUE')
print (" ***Resetting BRF_EMIS to TRUE***")

###############################################################################
def _main_func():

Expand Down

0 comments on commit 30fdd27

Please sign in to comment.