Skip to content

Commit

Permalink
Reset invalid pio_numiotasks
Browse files Browse the repository at this point in the history
Without this change if the stride is valid but numiotasks is
invalid, pio_numiotasks is not reset. The default value of
pio_numiotasks (-99) in component namelists is not reset
as expected.

The corresponding issue in ESMCI/cime is Issue #1372

[NML]
  • Loading branch information
jayeshkrishna committed Apr 17, 2017
1 parent 22d1e98 commit 3c7894d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/lib/CIME/case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def adjust_pio_layout(case, new_pio_stride):
if pio_stride != new_stride:
logger.info("Resetting PIO_STRIDE_%s to %s"%(comp, new_stride))
case.set_value("PIO_STRIDE_%s"%comp, new_stride)
if pio_numtasks != new_numtasks:
logger.info("Resetting PIO_NUMTASKS_%s to %s"%(comp, new_numtasks))
case.set_value("PIO_NUMTASKS_%s"%comp, new_numtasks)
if pio_numtasks != new_numtasks:
logger.info("Resetting PIO_NUMTASKS_%s to %s"%(comp, new_numtasks))
case.set_value("PIO_NUMTASKS_%s"%comp, new_numtasks)


###############################################################################
Expand Down

0 comments on commit 3c7894d

Please sign in to comment.