Epetra_Comm Sum function.
More...
Public Member Functions | |
Sum Methods | |
| subroutine | sumall (this, PartialSums, GlobalSums, err) |
| subroutine | sumall (this, PartialSums, GlobalSums, err) |
Epetra_Comm Sum function.
Take list of input values from all processors in the communicator, computes the sum and returns the sum to all processors. Implemented in Epetra_MpiComm, and Epetra_SerialComm.
| subroutine fepetra_comm::SumAll::sumall | ( | class(epetra_comm), intent(in) | this, |
| real(c_double), dimension(:), intent(in) | PartialSums, | ||
| real(c_double), dimension(:), intent(inout) | GlobalSums, | ||
| type(error), intent(inout), optional | err | ||
| ) |
| [in] | this | Polymorphic type Epetra_Comm communicator containing processors information |
| [in] | partialsums | In On entry, contains the list of values, usually partial sums computed locally, to be summed across all processors. |
| [in,out] | globalsums | Out On exit, contains the list of values summed across all processors. |
| [in,out] | err | Returns error information. |
| subroutine fepetra_comm::SumAll::sumall | ( | class(epetra_comm), intent(in) | this, |
| integer(c_int), dimension(:), intent(in) | PartialSums, | ||
| integer(c_int), dimension(:), intent(inout) | GlobalSums, | ||
| type(error), intent(inout), optional | err | ||
| ) |
| [in] | this | Polymorphic type Epetra_Comm communicator containing processors information |
| [in] | partialsums | In On entry, contains the list of values, usually partial sums computed locally, to be summed across all processors. |
| [in,out] | globalsums | Out On exit, contains the list of values summed across all processors. |
| [in,out] | err | Returns error information. |
1.8.6