restore_local_layout Subroutine

private subroutine restore_local_layout(state, snap)

Restore the per-rank local layout captured by save_local_layout. Releases all work arrays, swaps state%decomp back to the saved local decomp, reallocates work arrays at local size, and copies the saved ub-interior (and bdf2_ub_prev if present) back in. The bdf2_initialized flag is also restored.

Arguments

Type IntentOptional Attributes Name
type(solver_state_t), intent(inout) :: state
type(local_layout_save_t), intent(in) :: snap