Skip to content

Commit

Permalink
fix cice5 restart pointers (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-seaice authored Oct 25, 2024
1 parent 74be036 commit 27aac37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion payu/models/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ def __init__(self, expt, name, config):
model.copy_restarts = True

model.set_timestep = model.set_access_timestep
model.get_ptr_restart_dir = model.get_access_ptr_restart_dir

if model.model_type == 'cice5':
model.access_restarts.extend(['u_star.nc', 'sicemass.nc'])

if model.model_type == 'cice':
# The ACCESS build of CICE assumes that restart_dir is 'RESTART'
model.get_ptr_restart_dir = lambda : '.'

# Structure of model coupling namelist
model.cpl_fname = 'input_ice.nml'
model.cpl_group = 'coupling'
Expand Down
5 changes: 0 additions & 5 deletions payu/models/cice.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ def set_model_output_paths(self):
def get_ptr_restart_dir(self):
return os.path.relpath(self.work_init_path, self.work_path)

def get_access_ptr_restart_dir(self):
# The ACCESS build of CICE assumes that restart_dir is 'RESTART'
# TODO: Move to ACCESS driver
return '.'

def setup(self):
super(Cice, self).setup()

Expand Down

0 comments on commit 27aac37

Please sign in to comment.