chombo-discharge
|
For putting a bunch of often-used MPI reductions in one place. More...
Functions | |
void | barrier () noexcept |
MPI barrier. | |
std::pair< int, int > | 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 | min (const Real &a_input) noexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
int | min (const int &a_input) noexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
long long int | 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 > | 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 | max (const Real &a_input) noexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
int | max (const int &a_input) noexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) More... | |
long long | 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 > | 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 > | maxRank (const Real &a_val) noexcept |
Get the maximum value and the rank having the maximum value. More... | |
std::pair< Real, int > | minRank (const Real &a_val) noexcept |
Get the minimum value and the rank having the minimum value. More... | |
Real | average (const Real &a_val) noexcept |
Compute the average (across MPI ranks) of the input value. More... | |
Real | sum (const Real &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
int | sum (const int &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
long | sum (const long &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
long long | sum (const long long &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
unsigned long long | sum (const unsigned long long &a_value) noexcept |
Compute the sum across all MPI ranks. More... | |
Real | standardDeviation (const Real &a_value) noexcept |
Compute the standard deviation of the input value. More... | |
void | vectorSum (Vector< Real > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
void | vectorSum (Vector< int > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
void | vectorSum (Vector< long int > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
void | vectorSum (Vector< long long int > &a_data) noexcept |
Perform a summation of all the MPI ranks's input data. More... | |
For putting a bunch of often-used MPI reductions in one place.
|
inlinenoexcept |
Compute the average (across MPI ranks) of the input value.
[in] | a_val | Value to take the average of |
|
inlinenoexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
[in] | a_input | Data input. |
|
inlinenoexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
[in] | a_input | Data input. |
|
inlinenoexcept |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
[in] | a_input | Data input. |
|
inlinenoexcept |
Get the maximum value and the position corresponding to the maximum value of a_val.
This returns the value a_val and position a_pos such that they correspond to the input variables for the processer which held the largest value a_val.
|
inlinenoexcept |
Get the maximum value and the rank having the maximum value.
[in] | a_val | Value to be compared. |
|
inlinenoexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
[in] | a_input | Data input. Returns the smallest. |
|
inlinenoexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
[in] | a_input | Data input. Returns the smallest. |
|
inlinenoexcept |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
[in] | a_input | Data input. Returns the smallest. |
|
inlinenoexcept |
Get the minimum value and the position corresponding to the minimum value of a_val.
This returns the value a_val and position a_pos such that they correspond to the input variables for the processer which held the smallest value a_val.
|
inlinenoexcept |
Get the minimum value and the rank having the minimum value.
[in] | a_val | Value to be compared. |
|
inlinenoexcept |
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.
Returns start/stop indices along N. For example, if using two MPI ranks with N = 10 the first rank obtains pair(0,4) and the second rank get (5,9)
[in] | a_N | Some container size. |
|
inlinenoexcept |
Compute the standard deviation of the input value.
[in] | a_value | Value to compute the standard deviation of. |
|
inlinenoexcept |
Compute the sum across all MPI ranks.
[in] | a_value | Value to the take the sum of. |
|
inlinenoexcept |
Compute the sum across all MPI ranks.
[in] | a_value | Value to the take the sum of. |
|
inlinenoexcept |
Compute the sum across all MPI ranks.
[in] | a_value | Value to the take the sum of. |
|
inlinenoexcept |
Compute the sum across all MPI ranks.
[in] | a_value | Value to the take the sum of. |
|
inlinenoexcept |
Compute the sum across all MPI ranks.
[in] | a_value | Value to the take the sum of. |
|
inlinenoexcept |
Perform a summation of all the MPI ranks's input data.
This performs a rank-wise summation. If rank 1 has data (1,2,3) and rank 2 has data (3,4,5), the output data on both ranks is (4,6,8).
[in,out] | a_data | On |
|
inlinenoexcept |
Perform a summation of all the MPI ranks's input data.
This performs a rank-wise summation. If rank 1 has data (1,2,3) and rank 2 has data (3,4,5), the output data on both ranks is (4,6,8).
[in,out] | a_data | On |
|
inlinenoexcept |
Perform a summation of all the MPI ranks's input data.
This performs a rank-wise summation. If rank 1 has data (1,2,3) and rank 2 has data (3,4,5), the output data on both ranks is (4,6,8).
[in,out] | a_data | On |
|
inlinenoexcept |
Perform a summation of all the MPI ranks's input data.
This performs a rank-wise summation. If rank 1 has data (1,2,3) and rank 2 has data (3,4,5), the output data on both ranks is (4,6,8).
[in,out] | a_data | On |