Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add restart method on Case #113

Closed
dafyddstephenson opened this issue Sep 27, 2024 · 2 comments · Fixed by #123
Closed

Add restart method on Case #113

dafyddstephenson opened this issue Sep 27, 2024 · 2 comments · Fixed by #123
Assignees

Comments

@dafyddstephenson
Copy link
Contributor

The method should return a new Case instance whose start_date corresponds to end_date on the previous case. It should also accept a new_end_date argument.

The only issue is that, in the case of spinning the model up, typically the user would want to change the timestep size, which is defined separately for each component (in our case this involves updating ROMSComponent.discretization.timestep). I think this is acceptable for now.

@dafyddstephenson dafyddstephenson self-assigned this Sep 27, 2024
@dafyddstephenson
Copy link
Contributor Author

The big problem here will be automatically replacing ROMSComponent.initial_conditions with the correct file path to the restart file. C-Star will somehow have to work out what the name of the restart file is going to be (presumably by parsing the AdditionalCode.source_mods / ocean_vars.optfile to get the restart file frequency and combining this with the time step, run length, and run name specified in the ROMS namelist file).

@dafyddstephenson
Copy link
Contributor Author

Related: #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant