MPI MAX reduction operation.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(parallel_obj), | intent(inout) | :: | this |
Parallel object |
||
| real(kind=wp), | intent(in) | :: | A |
Send buffer |
||
| real(kind=wp), | intent(out) | :: | B |
Receive buffer |
impure subroutine parallel_obj_Max_real_0d(this,A,B) !> MPI MAX reduction operation. implicit none class(parallel_obj), intent(inout) :: this !! Parallel object real(wp), intent(in) :: A !! Send buffer real(wp), intent(out) :: B !! Receive buffer ! Work variables integer :: ierr call MPI_ALLREDUCE(A,B,1,this%REAL_WP,MPI_MAX,this%comm%g,ierr) return end subroutine parallel_obj_Max_real_0d