Skip to content

Fill halos after checkpoint pickup, enables changes in barotropic substep values#5691

Open
taimoorsohail wants to merge 32 commits into
mainfrom
ts/fill-halos-after-pickup
Open

Fill halos after checkpoint pickup, enables changes in barotropic substep values#5691
taimoorsohail wants to merge 32 commits into
mainfrom
ts/fill-halos-after-pickup

Conversation

@taimoorsohail

@taimoorsohail taimoorsohail commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Closes #5608

This PR enables pickup with a different number of model halos and/or free surface halos.

The pickup path first checks if the interior grid is the same, then if the halos are the same OR the free surface halos are the same. If the interior grid and halos are the same, the model carries the RestoreonCurrentGrid mode, and if the interior is the same but halos are not, then the model carries the RestoreonCompatibleGrid mode. This then restores the interior, then builds the halos using fill_halos.

Taimoor Sohail and others added 13 commits May 21, 2026 16:12
…mat imports

- Consolidate same_interior_grid methods into single generic implementation
  * Remove compare_grid_field helper
  * Single implementation for all grid types, with special handling for ImmersedBoundaryGrid
  * Use _halo_excluded_fields() helper constant for clarity

- Format checkpoint-related imports across model files
  * Hydrostatic, Nonhydrostatic, and ShallowWater models now use consistent multi-line format
  * Improves readability and makes import list easier to maintain

- Add finalize_compatible_grid_restore! helper in checkpointer.jl
  * Reduces code duplication in model-specific checkpoint restoration
  * Centralizes common halo filling and field masking logic
@taimoorsohail taimoorsohail changed the title Fill halos after checkpoint pickup, enables changes in barotropic subset values Fill halos after checkpoint pickup, enables changes in barotropic substep values Jun 17, 2026
Comment thread src/OutputWriters/checkpointer.jl Outdated
@taimoorsohail taimoorsohail marked this pull request as ready for review June 20, 2026 12:31
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 this pull request may close these issues.

Support changing SplitExplicitFreeSurface Nsubsteps after pickup (?)

2 participants