Skip to content

Commit

Permalink
Move the setting of PIO_TYPENAME and PIO_REARRANGER_LND into the NEON…
Browse files Browse the repository at this point in the history
… default user-mod so it's at a lower level than run_neon
  • Loading branch information
ekluzek committed May 16, 2022
1 parent 195586f commit 6cf26e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 6 additions & 0 deletions cime_config/usermods_dirs/NEON/defaults/shell_commands
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
./xmlchange CCSM_CO2_PPMV=408.83
./xmlchange DATM_PRESAERO=SSP3-7.0
./xmlchange DATM_YR_ALIGN=2018,DATM_YR_END=2020,DATM_YR_START=2018
# Explicitly set PIO Type to NETCDF since this is a single processor case (should already be set this way)
./xmlchange PIO_TYPENAME=netcdf
# BD:05/06/2022 - The PIO_REARRANGER_LND value - for global runs, PIO_REARRANGER_LND = 1 is ideal
# and a value of 2 results in slow I/O. For point runs like these, a value of 1 results in a crash (PIO bug, probably),
# so we explicitly set a value of 2.
./xmlchange PIO_REARRANGER_LND=2
10 changes: 0 additions & 10 deletions tools/site_and_regional/run_neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,6 @@ def build_base_case(

# --change any config for base_case:
# case.set_value("RUN_TYPE","startup")
case.set_value("PIO_TYPENAME", "netcdf") # BD:05/06/2022 - These single point runs should use NetCDF; this just makes it explicit.
case.set_value("PIO_REARRANGER_LND", 2) # BD:05/06/2022 - And this explicitly sets the PIO_REARRANGER_LND value - for global runs,
# PIO_REARRANGER_LND = 1 is ideal, and a value of 2 results in slow I/O. For point runs like
# these, a value of 1 results in a crash (PIO bug, probably), so we explicitly set a value of 2.

print("---- base case setup ------")
case.case_setup()
else:
Expand Down Expand Up @@ -523,11 +518,6 @@ def run_case(
case.set_value("REST_OPTION", "end")
case.set_value("CONTINUE_RUN", False)
case.set_value("NEONVERSION", version)
case.set_value("PIO_TYPENAME", "netcdf") # BD:05/06/2022 - These single point runs should use NetCDF; this just makes it explicit.
case.set_value("PIO_REARRANGER_LND", 2) # BD:05/06/2022 - And this explicitly sets the PIO_REARRANGER_LND value - for global runs,
# PIO_REARRANGER_LND = 1 is ideal, and a value of 2 results in slow I/O. For point runs like
# these, a value of 1 results in a crash (PIO bug, probably), so we explicitly set a value of 2.

if run_type == "ad":
case.set_value("CLM_FORCE_COLDSTART", "on")
case.set_value("CLM_ACCELERATED_SPINUP", "on")
Expand Down

0 comments on commit 6cf26e9

Please sign in to comment.