Flow123d
jenkins-Flow123d-linux-release-multijob-198
|
#include <vec_seq_double.hh>
Public Types | |
typedef std::shared_ptr < std::vector< double > > | VectorSeq |
Public Member Functions | |
void | resize (unsigned int size) |
Create shared pointer and PETSC vector with given size. More... | |
VectorSeq | get_data_ptr () |
Getter for shared pointer of output data. More... | |
Vec & | get_data_petsc () |
Getter for PETSC vector of output data (e.g. can be used by scatters). More... | |
template<int spacedim, class Value > | |
std::shared_ptr < FieldElementwise< spacedim, Value > > | create_field (unsigned int n_comp) |
Create and return shared pointer to FieldElementwise object. More... | |
~VectorSeqDouble () | |
Destructor. More... | |
double & | operator[] (unsigned int idx) |
Private Attributes | |
VectorSeq | data_ptr_ |
shared pointer to vector of data More... | |
Vec | data_petsc_ |
stored vector of data in PETSC format More... | |
Auxiliary class for output elementwise concentration vectors in convection transport, sorptions, dual porosity etc.
Stores data in two formats:
Allows the following functionalities:
Definition at line 33 of file vec_seq_double.hh.
typedef std::shared_ptr< std::vector<double> > VectorSeqDouble::VectorSeq |
Definition at line 35 of file vec_seq_double.hh.
|
inline |
Destructor.
Definition at line 67 of file vec_seq_double.hh.
|
inline |
Create and return shared pointer to FieldElementwise object.
Definition at line 59 of file vec_seq_double.hh.
|
inline |
Getter for PETSC vector of output data (e.g. can be used by scatters).
Definition at line 52 of file vec_seq_double.hh.
|
inline |
Getter for shared pointer of output data.
Definition at line 46 of file vec_seq_double.hh.
|
inline |
Access to the vector element on index idx
.
Definition at line 75 of file vec_seq_double.hh.
|
inline |
Create shared pointer and PETSC vector with given size.
Definition at line 38 of file vec_seq_double.hh.
|
private |
stored vector of data in PETSC format
Definition at line 85 of file vec_seq_double.hh.
|
private |
shared pointer to vector of data
Definition at line 83 of file vec_seq_double.hh.