From be2e46bddd399afc57e8cb88b2839c087dbec875 Mon Sep 17 00:00:00 2001 From: Spencer Wong Date: Thu, 12 Dec 2024 16:05:42 +1100 Subject: [PATCH] cleanup --- payu/models/cice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/payu/models/cice.py b/payu/models/cice.py index 21ec6072..70c9b090 100644 --- a/payu/models/cice.py +++ b/payu/models/cice.py @@ -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() @@ -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) @@ -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 @@ -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