Skip to content

Commit

Permalink
Set payu paths explicitly in namelist
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanBryan51 committed Nov 21, 2023
1 parent 2f02b68 commit 9f7e0d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions payu/models/cable.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ def setup(self):

year = self.cable_nml['cable']['ncciy'] = self.restart_info['year']

restart_file_path = os.path.join('RESTART', 'restart.nc')
self.cable_nml['cable']['filename']['restart_in'] = restart_file_path
self.cable_nml['cable']['filename']['restart_out'] = restart_file_path
self.cable_nml['cable']['output']['restart'] = True

forcing_year_config_path = os.path.join(self.work_path, self.forcing_year_config)
if os.path.exists(forcing_year_config_path):
with open(forcing_year_config_path, 'r') as file:
Expand Down

0 comments on commit 9f7e0d7

Please sign in to comment.