Skip to content

Commit 8622f97

Browse files
committed
Clean
1 parent 8673437 commit 8622f97

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

visualCaseGen/config_vars/grid_vars.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ def initialize_custom_grid_variables(cime):
4040
# A preexisting ATM grid picked for custom grid
4141
ConfigVarStrMS("CUSTOM_ATM_GRID", default_value="0.9x1.25")
4242

43-
# The associated domain mesh
44-
ConfigVarStrMS("CUSTOM_ATM_DOMAIN_MESH")
45-
4643
# Custom ocean grid variables
4744
ConfigVarStr("OCN_GRID_MODE") # Standard, Modify Existing, Create New
4845

@@ -74,8 +71,6 @@ def initialize_custom_grid_variables(cime):
7471
"CUSTOM_LND_GRID",
7572
default_value="0.9x1.25"
7673
) # A preexisting land grid picked for the custom grid
77-
ConfigVarStr("CUSTOM_LND_DOMAIN_MESH") # The associated domain mesh
78-
7974

8075
# Auto-fill the INPUT_MASK_MESH variable based on the CUSTOM_LND_GRID variable
8176
def default_input_mask_mesh():

visualCaseGen/custom_widget_types/case_creator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ def __init__(self, cime, output=None, allow_xml_override=False):
4242
self._allow_xml_override = allow_xml_override
4343

4444
def revert_launch(self, do_exec=True):
45-
"""This function is called when the case creation fails. It reverts the changes made
46-
to the ccs_config xml files."""
45+
"""This function is called when the case creation fails. It reverts any permanent changes made."""
4746

4847
return # Currently no action is needed
4948

@@ -117,7 +116,6 @@ def create_case(self, do_exec):
117116
print(f"{COMMENT}Creating case...{RESET}\n")
118117

119118
# Run create_newcase
120-
breakpoint()
121119
self._run_create_newcase(caseroot, compset, resolution, do_exec)
122120

123121
# Add custom grid information to the case if needed:
@@ -329,7 +327,7 @@ def _run_create_newcase(self, caseroot, compset, resolution, do_exec):
329327
raise RuntimeError("Error creating case.")
330328

331329
def _apply_all_xmlchanges(self, do_exec):
332-
"""Apply all the necessary xmlchanges to the case."""
330+
"""Apply all the necessary xmlchanges (non-grid) to the case."""
333331

334332
# Set NTASKS based on grid size. e.g. NX * NY < max_pts_per_core
335333
if cvars["COMP_OCN"].value == "mom":

visualCaseGen/specs/grid_options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def custom_atm_grid_options_func(comp_atm, grid_mode):
125125
func=custom_atm_grid_options_func, args=(cvars["COMP_ATM"], cvars["GRID_MODE"])
126126
)
127127

128+
128129
def set_custom_ocn_grid_options(cime):
129130
"""Set the options and options specs for the custom OCN grid variables.
130131
This function is called at initialization."""

0 commit comments

Comments
 (0)