mpi_allreduce_sum Interface

public interface mpi_allreduce_sum

Sum a real quantity over all ranks of a communicator, in place


Module Procedures

private subroutine allreduce_sum_rank1(comm, val, error)

Sum an array over all ranks of a communicator

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: comm

MPI communicator handle

real(kind=wp), intent(inout), contiguous :: val(:)

Values to reduce

type(error_type), intent(out), allocatable :: error

Error handling

private subroutine allreduce_sum_rank2(comm, val, error)

Sum a matrix over all ranks of a communicator

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: comm

MPI communicator handle

real(kind=wp), intent(inout), contiguous, target :: val(:,:)

Values to reduce

type(error_type), intent(out), allocatable :: error

Error handling