Skip to content

Commit

Permalink
Clean-up ssh_forward
Browse files Browse the repository at this point in the history
  • Loading branch information
cbegeman committed Jan 17, 2024
1 parent bfd8ba5 commit 7699544
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions polaris/ocean/ice_shelf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def setup_ssh_adjustment_steps(self, init, config, config_filename,
shared_step = component.steps[subdir]
else:
ssh_forward = ForwardStep(
component=component, resolution=resolution, indir=indir,
mesh=init, init=current_init, name=name, package=package,
yaml_filename=yaml_filename,
component=component, min_resolution=resolution,
indir=indir, mesh=init, init=current_init, name=name,
package=package, yaml_filename=yaml_filename,
yaml_replacements=yaml_replacements)
ssh_forward.set_shared_config(config, link=config_filename)
shared_step = ssh_forward
Expand Down
10 changes: 5 additions & 5 deletions polaris/ocean/ice_shelf/ssh_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SshForward(OceanModelStep):
Attributes
----------
resolution : float
The resolution of the task in km
The minimum resolution in km used to determine the time step
package : Package
The package name or module object that contains ``namelist``
Expand All @@ -21,7 +21,7 @@ class SshForward(OceanModelStep):
key, string combinations for templated replacements in the yaml
file
"""
def __init__(self, component, resolution, mesh, init,
def __init__(self, component, min_resolution, mesh, init,
name='ssh_forward', subdir=None,
package=None, yaml_filename='ssh_forward.yaml',
yaml_replacements=None, iteration=1, indir=None,
Expand All @@ -34,8 +34,8 @@ def __init__(self, component, resolution, mesh, init,
component : polaris.Component
The component the step belongs to
resolution : km
The resolution of the task in km
min_resolution : float
The minimum resolution in km used to determine the time step
name : str
the name of the task
Expand Down Expand Up @@ -82,7 +82,7 @@ def __init__(self, component, resolution, mesh, init,
indir=f'{indir}/ssh_adjustment', ntasks=ntasks,
min_tasks=min_tasks, openmp_threads=openmp_threads)

self.resolution = resolution
self.resolution = min_resolution
self.package = package
self.yaml_filename = yaml_filename
self.yaml_replacements = yaml_replacements
Expand Down

0 comments on commit 7699544

Please sign in to comment.