MPI SUM reduction operation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(parallel_obj), | intent(inout) | :: | this |
Parallel object |
||
| integer, | intent(in) | :: | A(:,:) |
Send buffer |
||
| integer, | intent(out) | :: | B(:,:) |
Receive buffer |
impure subroutine parallel_obj_Sum_int_2d(this,A,B) !> MPI SUM reduction operation. implicit none class(parallel_obj), intent(inout) :: this !! Parallel object integer, intent(in) :: A(:,:) !! Send buffer integer, intent(out) :: B(:,:) !! Receive buffer ! Work variables integer :: ierr call MPI_ALLREDUCE(A,B,size(A),MPI_INTEGER,MPI_SUM,this%comm%g,ierr) return end subroutine parallel_obj_Sum_int_2d