Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
Test suite: None
Test baseline: N/A
Test namelist changes: N/A
Test status: N/A

Fixes: None

User interface changes?: No

Code review: None
  • Loading branch information
billsacks authored and jedwards4b committed Aug 31, 2016
1 parent 01b5888 commit d9c0e98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/python/CIME/SystemTests/nck.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ def _common_setup(self):
# think that the halving was unnecessary; but it's needed in case the
# original NTASKS was odd. (e.g., for NTASKS originally 15, we want to
# use NTASKS = int(15/2) * 2 = 14 tasks for case two.)
for comp in _COMPONENT_LIST:
for comp in self._COMPONENT_LIST:
ntasks = self._case.get_value("NTASKS_%s"%comp)
if ( ntasks > 1 ):
self._case.set_value("NTASKS_%s"%comp, int(ntasks/2))

def _case_one_setup(self):
for comp in _COMPONENT_LIST:
for comp in self._COMPONENT_LIST:
self._case.set_value("NINST_%s"%comp, 1)

case_setup(self._case, test_mode=True, reset=True)

def _case_two_setup(self):
for comp in _COMPONENT_LIST:
for comp in self._COMPONENT_LIST:
self._case.set_value("NINST_%s"%comp, 2)
ntasks = self._case.get_value("NTASKS_%s"%comp)
self._case.set_value("NTASKS_%s"%comp, ntasks*2)
Expand Down

0 comments on commit d9c0e98

Please sign in to comment.