Skip to content

Commit cdd3cd2

Browse files
authored
better handle of ntasks in eam/cice
1 parent b0b03aa commit cdd3cd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/cice/cime_config/buildnml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def buildnml(case, caseroot, compname):
4141
nthrds_ice = case.get_value("NTHRDS_ICE")
4242
ntasks_ice = case.get_value("NTASKS_ICE")
4343
ninst_ice = case.get_value("NINST_ICE")
44+
ntasks = case.get_value("NTASKS_PER_INST_ICE")
4445
rundir = case.get_value("RUNDIR")
4546
testcase = case.get_value("TESTCASE")
4647
casebuild = case.get_value("CASEBUILD")
@@ -61,7 +62,6 @@ def buildnml(case, caseroot, compname):
6162
# update env_build.xml settings to reflect changes in the configuration
6263
# this will trigger whether an automatic build is set upon the job resubmission
6364
if cice_auto_decomp:
64-
ntasks = int(ntasks_ice / ninst_ice)
6565
hgrid = ice_grid
6666
if ice_grid == 'ar9v2': hgrid = 'ar9v1'
6767
if ice_grid == 'ar9v4': hgrid = 'ar9v3'

components/eam/cime_config/buildnml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def buildnml(case, caseroot, compname):
4646
ncpl_base_period = case.get_value("NCPL_BASE_PERIOD")
4747
nthrds_atm = case.get_value("NTHRDS_ATM")
4848
ntasks_atm = case.get_value("NTASKS_ATM")
49+
ntasks = case.get_value("NTASKS_PER_INST_ATM")
4950
ninst_atm = case.get_value("NINST_ATM")
5051
pts_mode = case.get_value("PTS_MODE")
5152
rundir = case.get_value("RUNDIR")
@@ -181,7 +182,6 @@ def buildnml(case, caseroot, compname):
181182
logger.warning("WARNING: {} is being used".format(ncpl_base_period))
182183

183184
start_ymd = run_startdate.replace("-", "")
184-
ntasks = ntasks_atm / ninst_atm
185185

186186
if atm_flux_method == 'implicit_stress':
187187
linearize_pbl_winds = True

0 commit comments

Comments
 (0)