|
openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
The class holds the communication graph for a MPI_Exchange() call. More...
#include <SF_container.h>
Public Member Functions | |
| void | resize (size_t size) |
| Resize all vectors to size. More... | |
| template<class V > | |
| void | scale (V fac) |
| scale comm graph layout data More... | |
| void | transpose () |
| transpose comm graph (receive becomes send, and vice versa) More... | |
| template<class V > | |
| void | configure (const vector< V > &dest, MPI_Comm comm) |
| Set up the communication graph. More... | |
| template<class V > | |
| void | configure (const vector< V > &dest, const vector< T > &cnt, MPI_Comm comm) |
| Set up the communication graph. More... | |
| template<class V > | |
| void | source_ranks (vector< V > &source) |
| For every received data element, get the rank indices it was receive from. More... | |
Public Attributes | |
| vector< T > | scnt |
| Number of elements sent to each rank. More... | |
| vector< T > | sdsp |
| Displacements w.r.t. scnt. More... | |
| vector< T > | rcnt |
| Number of elements received from each rank. More... | |
| vector< T > | rdsp |
| Displacements w.r.t. rcnt. More... | |
The class holds the communication graph for a MPI_Exchange() call.
Definition at line 625 of file SF_container.h.
|
inline |
Set up the communication graph.
| [in] | dest | The destination of each logical element to communicate. |
| [in] | cnt | The number of entries of each logical element. |
| [in] | comm | The MPI_Comm used for the communcation. |
Definition at line 689 of file SF_container.h.
|
inline |
Set up the communication graph.
| [in] | dest | The destination of each local element to communicate. |
| [in] | comm | The MPI_Comm used for the communcation. |
Definition at line 667 of file SF_container.h.
|
inline |
Resize all vectors to size.
Definition at line 634 of file SF_container.h.
scale comm graph layout data
Definition at line 641 of file SF_container.h.
|
inline |
For every received data element, get the rank indices it was receive from.
Note: The commgraph class needs to be configured in order for this function to produce a meaningful result.
| [out] | source | A vector holding the source rank index to every element of data received. |
Definition at line 714 of file SF_container.h.
|
inline |
transpose comm graph (receive becomes send, and vice versa)
Definition at line 651 of file SF_container.h.
| vector<T> SF::commgraph< T >::rcnt |
Number of elements received from each rank.
Definition at line 630 of file SF_container.h.
| vector<T> SF::commgraph< T >::rdsp |
Displacements w.r.t. rcnt.
Definition at line 631 of file SF_container.h.
| vector<T> SF::commgraph< T >::scnt |
Number of elements sent to each rank.
Definition at line 628 of file SF_container.h.
| vector<T> SF::commgraph< T >::sdsp |
Displacements w.r.t. scnt.
Definition at line 629 of file SF_container.h.