-
Notifications
You must be signed in to change notification settings - Fork 18
Implementing checkpointer for coupled model #401
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
base: main
Are you sure you want to change the base?
Conversation
I don't agree with the design that creates a new function called |
Yes, we also agree. We don't like that either! Somehow this: function run!(simulation::Simulation{<:OceanSeaIceSimulation}`; pickup)
if pickup
... do extra things to pick up a coupled model
end
run!(simulation) # Oceananigans.Simulations.run!
return nothing
end wasn't working for us yesterday. Don't worry too much atm, it's mostly playing around. When we settle or if we get stuck we can ping you. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #401 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 40 40
Lines 2300 2329 +29
=====================================
- Misses 2300 2329 +29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Linking issue #404 to this PR |
To implement this, you need to first work on a PR in Oceananigans that exposes an interface for "picking up a simulation", which has a default implementation in Oceananigans, but which can be specialized for the type of Simulation. Then you can specialize for a simulation of |
After 9ab0df1 I can run the checkpointer_mwe.jl with Oceananigans 0.95.26 (not the branch from CliMA/Oceananigans.jl#4216)! |
@glwagner can you review? if you are happy we can convert the |
Just note that I’m refactoring this. It’s almost there. But haven’t pushed yet. |
…ClimaOcean.jl into ts/checkpointer-for-coupled-model
I plan to work on this early next week |
This PR supersedes #381
adding a new run_coupled! function that replaces the run! function in Oceananigans.adds new methods so that checkpointing works for coupled ocean-sea ice simulations with PrescribedAtmosphere.with @navidcy