scatter_edge_ghosts_from_root Subroutine

public subroutine scatter_edge_ghosts_from_root(state, left, right)

Inverse of gather_edge_ghosts_to_root: rank 0 delivers the left/ right ghost blocks (as just read from a checkpoint) to the ranks that own those edges, copying directly into state % ub's halo columns. Same ownership derivation and np=1 pure-local-copy behaviour as the gather — F2.

Arguments

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

This rank's solver state (ub receives the restored ghosts).

real(kind=wp), intent(in) :: left(:,:)
real(kind=wp), intent(in) :: right(:,:)