read_checkpoint_2d Subroutine

public subroutine read_checkpoint_2d(state, fname, t, iter, is_ok, message, t_comp)

Read a checkpoint and restore state. Every rank reads the global file read-only, validates magic/version/dim/nx/ny/neq/grid/halo-width, then slices its interior block and its owned piece of the GLOBAL boundary-ghost frame (v6; see the write-side record-block comment).

(v6, Q2d); always read from the file when present, 0 on any failure.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
character(len=*), intent(in) :: fname
real(kind=wp), intent(out) :: t
integer, intent(out) :: iter
logical, intent(out), optional :: is_ok
character(len=*), intent(out), optional :: message
real(kind=wp), intent(out), optional :: t_comp

Optional: restored Kahan compensation term for t