openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
|
Container for a PETSc VecScatter. More...
#include <SF_abstract_vector.h>
Public Member Functions | |
scattering () | |
Constructor. More... | |
~scattering () | |
Destructor. More... | |
template<class T , class S > | |
void | forward (abstract_vector< T, S > &in, abstract_vector< T, S > &out, bool add=false) |
Forward scattering. More... | |
template<class T , class S > | |
void | backward (abstract_vector< T, S > &in, abstract_vector< T, S > &out, bool add=false) |
Backward scattering. More... | |
template<class T , class S > | |
void | operator() (abstract_vector< T, S > &v, bool fwd) |
Apply the scattering on a data vector. More... | |
Public Attributes | |
Vec | b_buff |
A buffer vector which also defines the parallel layout of the "b" side. More... | |
VecScatter | vec_sc |
The scatterer. More... | |
vector< SF_int > | idx_a |
vector< SF_int > | idx_b |
Container for a PETSc VecScatter.
A VecScatter redistributes vector data from indexing "a" to indexing "b". Where the two indexings can have different parallel layouts.
Definition at line 670 of file SF_abstract_vector.h.
|
inline |
Constructor.
Definition at line 679 of file SF_abstract_vector.h.
|
inline |
Destructor.
Definition at line 683 of file SF_abstract_vector.h.
|
inline |
Backward scattering.
in | Scatter from. |
out | Scatter to. |
Definition at line 707 of file SF_abstract_vector.h.
|
inline |
Forward scattering.
in | Scatter from. |
out | Scatter to. |
Definition at line 695 of file SF_abstract_vector.h.
|
inline |
Apply the scattering on a data vector.
[in,out] | v | The data vector. |
[in] | fwd | True for forward, false for backward scatting. |
Definition at line 719 of file SF_abstract_vector.h.
Vec SF::scattering::b_buff |
A buffer vector which also defines the parallel layout of the "b" side.
Definition at line 673 of file SF_abstract_vector.h.
Definition at line 676 of file SF_abstract_vector.h.
Definition at line 676 of file SF_abstract_vector.h.
VecScatter SF::scattering::vec_sc |
The scatterer.
Definition at line 674 of file SF_abstract_vector.h.