chombo-discharge
Loading...
Searching...
No Matches
Namespaces | Functions
CD_ParallelOps.H File Reference

Agglomeration of basic MPI reductions. More...

#include <RealVect.H>
#include <CD_NamespaceHeader.H>
#include <CD_NamespaceFooter.H>
#include <CD_ParallelOpsImplem.H>
Include dependency graph for CD_ParallelOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ParallelOps
 For putting a bunch of often-used MPI reductions in one place.
 

Functions

void ParallelOps::barrier () noexcept
 MPI barrier.
 
std::pair< int, intParallelOps::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.
 
Real ParallelOps::min (const Real &a_input) noexcept
 Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
 
int ParallelOps::min (const int &a_input) noexcept
 Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
 
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)
 
std::pair< Real, RealVectParallelOps::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.
 
Real ParallelOps::max (const Real &a_input) noexcept
 Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
 
int ParallelOps::max (const int &a_input) noexcept
 Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
 
long long ParallelOps::max (const long long &a_input) noexcept
 Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
 
std::pair< Real, RealVectParallelOps::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.
 
std::pair< Real, intParallelOps::maxRank (const Real &a_val) noexcept
 Get the maximum value and the rank having the maximum value.
 
std::pair< Real, intParallelOps::minRank (const Real &a_val) noexcept
 Get the minimum value and the rank having the minimum value.
 
Real ParallelOps::average (const Real &a_val) noexcept
 Compute the average (across MPI ranks) of the input value.
 
Real ParallelOps::sum (const Real &a_value) noexcept
 Compute the sum across all MPI ranks.
 
int ParallelOps::sum (const int &a_value) noexcept
 Compute the sum across all MPI ranks.
 
long ParallelOps::sum (const long &a_value) noexcept
 Compute the sum across all MPI ranks.
 
long long ParallelOps::sum (const long long &a_value) noexcept
 Compute the sum across all MPI ranks.
 
unsigned long long ParallelOps::sum (const unsigned long long &a_value) noexcept
 Compute the sum across all MPI ranks.
 
Real ParallelOps::standardDeviation (const Real &a_value) noexcept
 Compute the standard deviation of the input value.
 
void ParallelOps::sum (Vector< Real > &a_data) noexcept
 Perform a summation of all the MPI ranks's input data.
 
void ParallelOps::sum (Vector< int > &a_data) noexcept
 Perform a summation of all the MPI ranks's input data.
 
void ParallelOps::sum (Vector< long int > &a_data) noexcept
 Perform a summation of all the MPI ranks's input data.
 
void ParallelOps::sum (Vector< long long int > &a_data) noexcept
 Perform a summation of all the MPI ranks's input data.
 
Vector< intParallelOps::gather (const int &a_localValue) noexcept
 Gather local values – return a vector of local values.
 
Vector< RealParallelOps::gather (const Real &a_localValue) noexcept
 Gather local values – return a vector of local values.
 

Detailed Description

Agglomeration of basic MPI reductions.

Author
Robert Marskar