openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
The base class for parallel layouts. More...
#include <SF_parallel_layout.h>
Public Member Functions | |
void | globalize (vector< T > &lvec) const |
Globalize local indices. More... | |
T | globalize (const T lidx) const |
Globalize local indices. More... | |
void | localize (vector< T > &gvec) const |
Localize global indices. More... | |
template<class V > | |
void | localize (vector< T > &gidx, vector< V > &gdat) const |
Localize global indices and associated data. More... | |
T | localize (T gidx) const |
void | assign (const vector< T > &idx) |
Assign a parallel distributed index set that defines the parallel layout. More... | |
Protected Attributes | |
vector< T > | _l2g |
The global indices of the local DD domain. Also serves as the local-to-global map. More... | |
hashmap::unordered_map< T, T > | _g2l |
The global-to-local map for the DD domain. More... | |
The base class for parallel layouts.
It provides the basic index localization and globalization functionality.
T | Integer type. |
Definition at line 235 of file SF_parallel_layout.h.
|
inline |
Assign a parallel distributed index set that defines the parallel layout.
idx | An vector holding the global indices of the local domain. |
Definition at line 359 of file SF_parallel_layout.h.
|
inline |
Globalize local indices.
Indices that cannot be mapped will be removed.
lvec | The indices to globalize. |
Definition at line 254 of file SF_parallel_layout.h.
|
inline |
Globalize local indices.
Indices that cannot be mapped will be removed.
lvec | The indices to globalize. |
Definition at line 276 of file SF_parallel_layout.h.
|
inline |
Localize global indices.
Indices that cannot be mapped will be removed.
gvec | The indices to localize. |
Definition at line 297 of file SF_parallel_layout.h.
|
inline |
Localize global indices and associated data.
Indices and data that cannot be mapped will be removed.
V | Value type. Can be anything with a proper '=' operator. |
gidx | The indices to localize. |
gdat | The data to localize. |
Definition at line 326 of file SF_parallel_layout.h.
|
inline |
Definition at line 345 of file SF_parallel_layout.h.
|
protected |
The global-to-local map for the DD domain.
Definition at line 241 of file SF_parallel_layout.h.
|
protected |
The global indices of the local DD domain. Also serves as the local-to-global map.
Definition at line 239 of file SF_parallel_layout.h.