Skip to content

Commit

Permalink
Use if-else for ntasks_ocn
Browse files Browse the repository at this point in the history
  • Loading branch information
blcc committed Sep 27, 2024
1 parent b9ec965 commit 40c1307
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cime_config/buildcpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ def create_dimmod(case):
comp_root_dir_ocn = case.get_value("COMP_ROOT_DIR_OCN")
ocn_grid = case.get_value("OCN_GRID")
blom_vcoord = case.get_value("BLOM_VCOORD")
ntasks_ocn = case.get_value("NTASKS_PER_INST_OCN")
if case.get_value("NINST_OCN") > 1:
ntasks_ocn = case.get_value("NTASKS_OCN")
else:
ntasks_ocn = case.get_value("NTASKS_PER_INST_OCN")
objroot = case.get_value("OBJROOT")

gridconf_dir = os.path.join(comp_root_dir_ocn, "bld", ocn_grid)
Expand Down

0 comments on commit 40c1307

Please sign in to comment.