Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
blimlim committed Dec 12, 2024
1 parent cd7d68c commit be2e46b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions payu/models/cice.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def setup(self):
self.ice_in.patch(history_nml)

setup_nml = self.ice_in['setup_nml']
self._calc_runtime()

if self.prior_restart_path:
self._make_restart_ptr()
Expand All @@ -189,6 +188,8 @@ def setup(self):
if setup_nml['restart']:
self.link_restart(setup_nml['pointer_file'])

self._calc_runtime()

# Write any changes to the work directory copy of the cice
# namelist
nml_path = os.path.join(self.work_path, self.ice_nml_fname)
Expand Down Expand Up @@ -388,7 +389,7 @@ def overwrite_restart_ptr(self,
calendar_file):
"""
Generate restart pointer file 'ice.restart_file' pointing to
'iced.YYYYMMDD' with the correct start date.=
'iced.YYYYMMDD' with the correct start date.
Additionally check that the `iced.YYYYMNDD` restart file's header
has the correct previous runtime.
Typically called from the access driver, which provides the
Expand Down Expand Up @@ -453,8 +454,7 @@ def _cice4_check_date_consistency(self,
def find_matching_iced(self, dir_path, date):
"""
Check a directory for an iced.YYYYMMDD restart file matching a
specified date. Typically called from access.py driver which
provides the correct end date.
specified date.
Raises an error if the expected file is not found.
Parameters
Expand Down

0 comments on commit be2e46b

Please sign in to comment.