Skip to content

Commit 8f9cfc4

Browse files
cbegemanxylar
andauthored
Make compute_max_time_step private
Co-authored-by: Xylar Asay-Davis <[email protected]>
1 parent d1207f9 commit 8f9cfc4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/developers_guide/ocean/api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
7575
forward.Forward
7676
forward.Forward.compute_cell_count
77-
forward.Forward.compute_max_time_step
7877
forward.Forward.dynamic_model_config
7978
forward.Forward.setup
8079

polaris/tasks/ocean/barotropic_gyre/forward.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def dynamic_model_config(self, at_setup):
178178

179179
# check whether viscosity suitable for stability
180180
stability_parameter_max = 0.6
181-
dt_max = self.compute_max_time_step(config)
181+
dt_max = self._compute_max_time_step(config)
182182
nu_max = (
183183
stability_parameter_max
184184
* (resolution * 1.0e3) ** 2.0
@@ -274,7 +274,7 @@ def setup(self):
274274
if model == 'omega':
275275
self.add_input_file(filename='OmegaMesh.nc', target='init.nc')
276276

277-
def compute_max_time_step(self, config):
277+
def _compute_max_time_step(self, config):
278278
"""
279279
Compute the approximate maximum time step for stability
280280

0 commit comments

Comments
 (0)