ensure_resid_scratch_2d Subroutine

private subroutine ensure_resid_scratch_2d(state, nx, ny, sw)

Allocate (or re-allocate on a dimension change) the reconstruction scratch arrays shared by the uniform and curvilinear residual paths. Consistent stat= handling: the two paths previously diverged (one omitted stat=).

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state
integer, intent(in) :: nx
integer, intent(in) :: ny
integer, intent(in) :: sw