Add opt-in solver-step–based checkpointing via NetCDF output#1913
Add opt-in solver-step–based checkpointing via NetCDF output#1913CodersAcademy006 wants to merge 1 commit intogoogle-deepmind:mainfrom
Conversation
|
@jcitrin Please review this and provide me any feedbacks. Thank You!! |
|
There is currently one failing CI shard while the rest pass, which suggests this may be related to test behavior rather than the core logic itself. A few things that might be worth checking or adjusting:
|
|
Apologies but closing for now due to lack of activity, low prioritization, and lack of review capacity. We can consider reopening this later. |
This PR introduces minimal, opt-in checkpointing support for TORAX simulations,
triggered by solver step count.
Checkpoints reuse the existing xarray DataTree output representation and are
written as a dedicated NetCDF file that is overwritten in place and remains
restart-compatible. The feature is disabled by default and does not modify
solver behavior or final output semantics.
This PR intentionally limits scope to solver-step triggering only. Additional
trigger modes (e.g. wall-clock time, simulation time) will be added in
follow-up PRs if desired.
Fix #1894