Skip to content

Commit 2cd3f10

Browse files
committed
Add PECOUNT as optional cvar for create_newcase pe layout
Adds a PECOUNT ConfigVarStr to launcher_vars so callers (e.g. CrocoDash) can set a PE layout size hint (S, M, L, X1, X2, NxM, or integer) that gets passed as --pecount to CIME's create_newcase. Defaults to None, which lets CIME use its default (M).
1 parent aee5f90 commit 2cd3f10

2 files changed

Lines changed: 298 additions & 102 deletions

File tree

visualCaseGen/config_vars/launcher_vars.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,19 @@
1212
@owh.out.capture()
1313
def initialize_launcher_variables(cime):
1414

15-
ConfigVarStr("CASEROOT") # Path where the case will be created
15+
ConfigVarStr("CASEROOT") # Path where the case will be created
1616
ConfigVarStr(
1717
"MACHINE",
18-
default_value = cime.machine,
18+
default_value=cime.machine,
1919
)
20-
ConfigVarStr("PROJECT", widget_none_val="") # Project ID for the machine
21-
ConfigVarStr("CASE_CREATOR_STATUS", widget_none_val="") # a status variable to prevent the completion of the stage
22-
ConfigVarInt("NINST", default_value=1) # Number of model instances (Currently, can only be controlled in the backend,
23-
# particularly when visualCaseGen is used as an external library)
20+
ConfigVarStr("PROJECT", widget_none_val="") # Project ID for the machine
21+
ConfigVarStr(
22+
"CASE_CREATOR_STATUS", widget_none_val=""
23+
) # a status variable to prevent the completion of the stage
24+
ConfigVarInt(
25+
"NINST", default_value=1
26+
) # Number of model instances (Currently, can only be controlled in the backend,
27+
# particularly when visualCaseGen is used as an external library)
28+
ConfigVarStr(
29+
"PECOUNT"
30+
) # PE layout size hint for create_newcase (S, M, L, X1, X2, NxM, or integer); None uses CIME default (M)

0 commit comments

Comments
 (0)