gather_field_to_root Subroutine

public subroutine gather_field_to_root(local_field, n_local, decomp, gather_buf)

Gather (neq, n_local) slices from every rank into (neq, n_global) on rank 0 via MPI_Gatherv. On non-root ranks gather_buf is not accessed; pass a (neq, 0) sentinel allocation.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: local_field(:,:)
integer, intent(in) :: n_local
type(decomp_t), intent(in) :: decomp
real(kind=wp), intent(inout) :: gather_buf(:,:)