Flow123d
release_3.0.0-506-g34af125
|
#include <vec_seq_double.hh>
Public Types | |
typedef std::vector< double > | VectorData |
typedef std::shared_ptr< VectorData > | VectorDataPtr |
Public Member Functions | |
VectorMPI () | |
VectorMPI (unsigned int local_size) | |
Create shared pointer and PETSC vector with given size. COLLECTIVE. More... | |
void | resize (unsigned int local_size) |
void | duplicate (VectorMPI other) |
Return new vector with same parallel structure. More... | |
VectorDataPtr | data_ptr () |
Getter for shared pointer of output data. More... | |
Vec & | petsc_vec () |
Getter for PETSC vector of output data (e.g. can be used by scatters). More... | |
void | zero_entries () |
VectorData & | data () |
void | swap (VectorMPI &other) |
void | copy (VectorMPI &other) |
~VectorMPI () | |
Destructor. More... | |
double & | operator[] (unsigned int idx) |
Private Attributes | |
VectorDataPtr | data_ptr_ |
shared pointer to vector of data More... | |
Vec | data_petsc_ |
stored vector of data in PETSC format More... | |
Like VectorSeqDouble but for MPI PETSC vectors. Have acces to local part.
Definition at line 136 of file vec_seq_double.hh.
typedef std::vector<double> VectorMPI::VectorData |
Definition at line 138 of file vec_seq_double.hh.
typedef std::shared_ptr< VectorData > VectorMPI::VectorDataPtr |
Definition at line 139 of file vec_seq_double.hh.
|
inline |
Definition at line 141 of file vec_seq_double.hh.
|
inline |
Create shared pointer and PETSC vector with given size. COLLECTIVE.
Definition at line 145 of file vec_seq_double.hh.
|
inline |
Destructor.
Definition at line 219 of file vec_seq_double.hh.
|
inline |
Definition at line 213 of file vec_seq_double.hh.
|
inline |
|
inline |
Getter for shared pointer of output data.
Definition at line 171 of file vec_seq_double.hh.
|
inline |
Return new vector with same parallel structure.
Definition at line 166 of file vec_seq_double.hh.
|
inline |
Access to the vector element on index idx
.
Definition at line 227 of file vec_seq_double.hh.
|
inline |
Getter for PETSC vector of output data (e.g. can be used by scatters).
Definition at line 177 of file vec_seq_double.hh.
|
inline |
Resize the vector to given local size. Operation is allowed only if this object is a unique vector object pointing to the actual data.
Definition at line 153 of file vec_seq_double.hh.
|
inline |
Definition at line 202 of file vec_seq_double.hh.
|
inline |
Definition at line 182 of file vec_seq_double.hh.
|
private |
stored vector of data in PETSC format
Definition at line 239 of file vec_seq_double.hh.
|
private |
shared pointer to vector of data
Definition at line 237 of file vec_seq_double.hh.