diff --git a/cime_config/buildcpp b/cime_config/buildcpp index ec5f5bac..02bb27ce 100644 --- a/cime_config/buildcpp +++ b/cime_config/buildcpp @@ -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_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) diff --git a/cime_config/buildnml b/cime_config/buildnml index 8d85b92f..2a7cd852 100755 --- a/cime_config/buildnml +++ b/cime_config/buildnml @@ -97,7 +97,6 @@ def buildnml(case, caseroot, compname): #-------------------------- xml_fil = os.path.join(srcroot,"components","blom","cime_config","namelist_definition_blom.xml") - pg_blom = OcnInParamGen.from_namelist_xml(xml_fil) #------------------------ # Loop over all instances: @@ -115,6 +114,7 @@ def buildnml(case, caseroot, compname): # Remove old input data: #---------------------- + pg_blom = OcnInParamGen.from_namelist_xml(xml_fil) if os.path.isfile(input_data_list): os.remove(input_data_list)