mp_sum Interface

public interface mp_sum

Module Procedures

private subroutine mp_sum_i(msg, gid)

Sums a datum from all processes with result left on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout) :: msg

Datum to sum (input) and result (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_iv(msg, gid)

Element-wise sum of a rank-1 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_im(msg, gid)

Element-wise sum of a rank-2 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_im3(msg, gid)

Element-wise sum of a rank-3 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout), CONTIGUOUS :: msg(:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_im4(msg, gid)

Element-wise sum of a rank-4 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout), CONTIGUOUS :: msg(:,:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_l(msg, gid)

Sums a datum from all processes with result left on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout) :: msg

Datum to sum (input) and result (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_lv(msg, gid)

Element-wise sum of a rank-1 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_lm(msg, gid)

Element-wise sum of a rank-2 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_lm3(msg, gid)

Element-wise sum of a rank-3 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout), CONTIGUOUS :: msg(:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_lm4(msg, gid)

Element-wise sum of a rank-4 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout), CONTIGUOUS :: msg(:,:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_r(msg, gid)

Sums a datum from all processes with result left on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout) :: msg

Datum to sum (input) and result (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_rv(msg, gid)

Element-wise sum of a rank-1 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_rm(msg, gid)

Element-wise sum of a rank-2 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_rm3(msg, gid)

Element-wise sum of a rank-3 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_rm4(msg, gid)

Element-wise sum of a rank-4 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_d(msg, gid)

Sums a datum from all processes with result left on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout) :: msg

Datum to sum (input) and result (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_dv(msg, gid)

Element-wise sum of a rank-1 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_dm(msg, gid)

Element-wise sum of a rank-2 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_dm3(msg, gid)

Element-wise sum of a rank-3 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_dm4(msg, gid)

Element-wise sum of a rank-4 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_c(msg, gid)

Sums a datum from all processes with result left on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout) :: msg

Datum to sum (input) and result (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_cv(msg, gid)

Element-wise sum of a rank-1 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_cm(msg, gid)

Element-wise sum of a rank-2 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_cm3(msg, gid)

Element-wise sum of a rank-3 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_cm4(msg, gid)

Element-wise sum of a rank-4 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_z(msg, gid)

Sums a datum from all processes with result left on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout) :: msg

Datum to sum (input) and result (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_zv(msg, gid)

Element-wise sum of a rank-1 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_zm(msg, gid)

Element-wise sum of a rank-2 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_zm3(msg, gid)

Element-wise sum of a rank-3 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_zm4(msg, gid)

Element-wise sum of a rank-4 array on all processes.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:,:,:)

Array to sum and result

type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_root_iv(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_root_im(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_4), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_root_lv(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_root_lm(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=int_8), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_root_rv(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_root_rm(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_root_dv(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_root_dm(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_root_cv(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_root_cm(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_4), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_root_zv(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout), CONTIGUOUS :: msg(:)

Vector to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_root_zm(msg, root, gid)

Element-wise sum of data from all processes with result left only on one.

Read more…

Arguments

Type IntentOptional Attributes Name
complex(kind=real_8), intent(inout), CONTIGUOUS :: msg(:,:)

Matrix to sum (input) and (only on process root) result (output)

integer, intent(in) :: root
type(mp_comm_type), intent(in) :: gid

private subroutine mp_sum_b(msg, gid)

Logical OR reduction

Read more…

Arguments

Type IntentOptional Attributes Name
logical, intent(inout) :: msg

Datum to perform inclusive disjunction (input) and resultant inclusive disjunction (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier

private subroutine mp_sum_bv(msg, gid)

Logical OR reduction

Read more…

Arguments

Type IntentOptional Attributes Name
logical, intent(inout), DIMENSION(:), CONTIGUOUS :: msg

Datum to perform inclusive disjunction (input) and resultant inclusive disjunction (output)

type(mp_comm_type), intent(in) :: gid

Message passing environment identifier