|
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. | |
| Real | min (const Real &a_input) noexcept |
| Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) | |
| int | min (const int &a_input) noexcept |
| Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator) | |
| 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) | |
| 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. | |
| Real | max (const Real &a_input) noexcept |
| Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) | |
| int | max (const int &a_input) noexcept |
| Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) | |
| long long | max (const long long &a_input) noexcept |
| Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator) | |
| 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. | |
| std::pair< Real, int > | maxRank (const Real &a_val) noexcept |
| Get the maximum value and the rank having the maximum value. | |
| std::pair< Real, int > | minRank (const Real &a_val) noexcept |
| Get the minimum value and the rank having the minimum value. | |
| Real | average (const Real &a_val) noexcept |
| Compute the average (across MPI ranks) of the input value. | |
| Real | sum (const Real &a_value) noexcept |
| Compute the sum across all MPI ranks. | |
| int | sum (const int &a_value) noexcept |
| Compute the sum across all MPI ranks. | |
| long | sum (const long &a_value) noexcept |
| Compute the sum across all MPI ranks. | |
| long long | sum (const long long &a_value) noexcept |
| Compute the sum across all MPI ranks. | |
| unsigned long long | sum (const unsigned long long &a_value) noexcept |
| Compute the sum across all MPI ranks. | |
| Real | standardDeviation (const Real &a_value) noexcept |
| Compute the standard deviation of the input value. | |
| void | sum (Vector< Real > &a_data) noexcept |
| Perform a summation of all the MPI ranks's input data. | |
| void | sum (Vector< int > &a_data) noexcept |
| Perform a summation of all the MPI ranks's input data. | |
| void | sum (Vector< long int > &a_data) noexcept |
| Perform a summation of all the MPI ranks's input data. | |
| void | sum (Vector< long long int > &a_data) noexcept |
| Perform a summation of all the MPI ranks's input data. | |
| Vector< int > | gather (const int &a_localValue) noexcept |
| Gather local values – return a vector of local values. | |
| Vector< Real > | gather (const Real &a_localValue) noexcept |
| Gather local values – return a vector of local values. | |
For putting a bunch of often-used MPI reductions in one place.
Compute the average (across MPI ranks) of the input value.
| [in] | a_val | Value to take the average of |
Gather local values – return a vector of local values.
| [in] | a_localValue | Local value per MPI rank |
Gather local values – return a vector of local values.
| [in] | a_localValue | Local value per MPI rank |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
| [in] | a_input | Data input. |
Get the maximum of the input, reduced over MPI ranks (in the Chombo communicator)
| [in] | a_input | Data input. |
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.
Get the maximum value and the rank having the maximum value.
| [in] | a_val | Value to be compared. |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
| [in] | a_input | Data input. Returns the smallest. |
Get the minimum of the input, reduced over MPI ranks (in the Chombo communicator)
| [in] | a_input | Data input. Returns the smallest. |
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.
Get the minimum value and the rank having the minimum value.
| [in] | a_val | Value to be compared. |
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. |
Compute the standard deviation of the input value.
| [in] | a_value | Value to compute the standard deviation of. |
Compute the sum across all MPI ranks.
| [in] | a_value | Value to the take the sum of. |
Compute the sum across all MPI ranks.
| [in] | a_value | Value to the take the sum of. |
Compute the sum across all MPI ranks.
| [in] | a_value | Value to the take the sum of. |
Compute the sum across all MPI ranks.
| [in] | a_value | Value to the take the sum of. |
Compute the sum across all MPI ranks.
| [in] | a_value | Value to the take the sum of. |
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 |
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 |
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 |