chombo-discharge
|
Agglomeration of basic MPI reductions. More...
#include <RealVect.H>
#include <CD_NamespaceHeader.H>
#include <CD_NamespaceFooter.H>
#include <CD_ParallelOpsImplem.H>
Go to the source code of this file.
Namespaces | |
ParallelOps | |
For putting a bunch of often-used MPI reductions in one place. | |
Functions | |
void | ParallelOps::barrier () noexcept |
MPI barrier. | |
std::pair< int, int > | ParallelOps::partition (const int a_N) noexcept |
Partition the input number such that each MPI rank gets an equal chunk. We assume that N is the length of some container whose indexing starts at 0. More... | |
Real | ParallelOps::min (const Real &a_input) noexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
int | ParallelOps::min (const int &a_input) noexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
long long int | ParallelOps::min (const long long int &a_input) noexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
std::pair< Real, RealVect > | ParallelOps::min (const Real &a_val, const RealVect &a_pos) noexcept |
Get the minimum value and the position corresponding to the minimum value of a_val. More... | |
Real | ParallelOps::max (const Real &a_input) noexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
int | ParallelOps::max (const int &a_input) noexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
long long | ParallelOps::max (const long long &a_input) noexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
std::pair< Real, RealVect > | ParallelOps::max (const Real &a_val, const RealVect &a_pos) noexcept |
Get the maximum value and the position corresponding to the maximum value of a_val. More... | |
std::pair< Real, int > | ParallelOps::maxRank (const Real &a_val) noexcept |
Get the maximum value and the rank having the maximum value. More... | |
std::pair< Real, int > | ParallelOps::minRank (const Real &a_val) noexcept |
Get the minimum value and the rank having the minimum value. More... | |
Real | ParallelOps::average (const Real &a_val) noexcept |
Compute the average (across MPI ranks) of the input value. More... | |
Real | ParallelOps::sum (const Real &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
int | ParallelOps::sum (const int &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
long | ParallelOps::sum (const long &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
long long | ParallelOps::sum (const long long &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
unsigned long long | ParallelOps::sum (const unsigned long long &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
Real | ParallelOps::standardDeviation (const Real &a_value) noexcept |
Compute the standard deviation of the input value. More... | |
void | ParallelOps::vectorSum (Vector< Real > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
void | ParallelOps::vectorSum (Vector< int > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
void | ParallelOps::vectorSum (Vector< long int > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
void | ParallelOps::vectorSum (Vector< long long int > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
Agglomeration of basic MPI reductions.