Skip to content

Commit

Permalink
move dump_last to cice5 driver only
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice committed Aug 15, 2024
1 parent c750e6f commit 64e356c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions payu/models/cice.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ def setup(self):
assert(total_runtime % setup_nml['dt'] == 0)
setup_nml['istep0'] = int(total_runtime / setup_nml['dt'])

if self.model_type != 'cice': # model_type==cice5
# Force creation of a dump (restart) file at end of run
setup_nml['dump_last'] = True

nml_path = os.path.join(self.work_path, self.ice_nml_fname)
self.ice_in.write(nml_path, force=True)

Expand Down
3 changes: 3 additions & 0 deletions payu/models/cice5.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def set_local_timestep(self, t_step):
self.ice_in.write(ice_in_path, force=True)

def setup(self):
# Force creation of a dump (restart) file at end of run
self.ice_in['setup_nml']['dump_last'] = True

super(Cice5, self).setup()

# Make log dir
Expand Down

0 comments on commit 64e356c

Please sign in to comment.