-
Notifications
You must be signed in to change notification settings - Fork 63
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
Better restart handling #145
Comments
One improvement would be to create a "restart dump" as an xarray dataset - the output in the last timebound/timestep - that contains all of the information needed to restart the model, and to read this in and handle in one line of code. |
Just chiming in to say this functionality would be useful for my current application. Is there a timeline or a suggested work-around for now? Thanks! |
there is a workaround. Have a look at cell 45 of this: https://github.com/chrisroadmap/methane-mitigation/blob/main/notebooks/adaptive-removal-1.4.0.ipynb Look for these lines near the end of the block
Replace What is this doing exactly? It uses the output of the last timebound of the old run to initialise the first timebound of the new run. If you define your timebounds to overlap in the old and the new (say the old run ends with a 2050 timebound with The real magic is in the To do a complete job, you also need to initialise the ocean heat content
though if you forget, it won't affect the temperature computation or anything else. |
That works very well, thank you for the quick and helpful response! |
Sometimes we want to run fair one timestep at a time, do something with the output, and run for the next timestep. There's no mechanism in the model right now to do this sensibly.
The text was updated successfully, but these errors were encountered: