Skip to content

Commit 9a3dde6

Browse files
committed
Changes requested by Mike
1 parent c4a2e8d commit 9a3dde6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

visualCaseGen/custom_widget_types/case_creator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def _apply_all_xmlchanges(self, do_exec):
517517
xmlchange("NTASKS_OCN",cores, do_exec, self._is_non_local(), self._out)
518518

519519
@staticmethod
520-
def _calc_cores_based_on_grid( num_points, min_points_per_core = 32, max_points_per_core = 800, ideal_multiple_of_cores_used = 128):
520+
def _calc_cores_based_on_grid( num_points, min_points_per_core = 32, max_points_per_core = 300, ideal_multiple_of_cores_used = 128):
521521
"""Calculate the number of cores based on the grid size."""
522522

523523

@@ -586,7 +586,7 @@ def _apply_mom_namelist_changes(self, do_exec):
586586
# Determine timesteps based on the grid resolution (assuming coupling frequency of 1800.0 sec):
587587
res_x = float(cvars['OCN_LENX'].value) / int(cvars["OCN_NX"].value)
588588
res_y = float(cvars['OCN_LENY'].value) / int(cvars["OCN_NY"].value)
589-
dt = 600.0 * min(res_x,res_y) # A 1-deg grid should have ~600 sec tstep (a safe value)
589+
dt = 7200.0 * min(res_x,res_y) # A 1-deg grid should have ~600 sec tstep (a safe value)
590590
# Make sure 1800.0 is a multiple of dt and dt is a power of 2 and/or 3:
591591
dt = min((1800.0 / n for n in [2**i * 3**j for i in range(10) for j in range(6)] if 1800.0 % n == 0), key=lambda x: abs(dt - x))
592592
# Try setting dt_therm to dt*4, or dt*3, or dt*3, depending on whether 1800.0 becomes a multiple of dt:

0 commit comments

Comments
 (0)