exchange_halos_2d Subroutine

public subroutine exchange_halos_2d(state, d)

Fill state%ub halo cells from MPI neighbours in both x and y directions.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state

Solver state (ub must already be allocated via allocate_work_arrays_2d).

type(decomp_2d_t), intent(in) :: d

Per-rank 2D decomposition (neighbour ranks, local extents).