Flow123d
release_3.0.0-506-g34af125
|
#include <vec_seq_double.hh>
Public Types | |
typedef std::shared_ptr< std::vector< double > > | VectorSeq |
Public Member Functions | |
VectorSeqDouble () | |
Constructor. More... | |
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... | |
unsigned int | size () |
Getter for shared pointer of output data. More... | |
void | fill (double value) |
Fill all values of data vector with given value. More... | |
template<int spacedim, class Value > | |
std::shared_ptr< FieldFE< spacedim, Value > > | create_field (Mesh &mesh, unsigned int n_comp) |
Create and return shared pointer to FieldFE object. More... | |
template<int spacedim, class Value > | |
void | fill_output_data (std::shared_ptr< FieldFE< spacedim, Value > > field_ptr) |
~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... | |
FiniteElement< 0 > * | fe0_ |
Finite element objects (allow to create DOF handler) More... | |
FiniteElement< 1 > * | fe1_ |
FiniteElement< 2 > * | fe2_ |
FiniteElement< 3 > * | fe3_ |
std::shared_ptr< DOFHandlerMultiDim > | dh_ |
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 46 of file vec_seq_double.hh.
typedef std::shared_ptr< std::vector<double> > VectorSeqDouble::VectorSeq |
Definition at line 48 of file vec_seq_double.hh.
|
inline |
Constructor.
Definition at line 51 of file vec_seq_double.hh.
|
inline |
Destructor.
Definition at line 105 of file vec_seq_double.hh.
template std::shared_ptr< FieldFE< 3, FieldValue< 3 >::VectorFixed > > VectorSeqDouble::create_field | ( | Mesh & | mesh, |
unsigned int | n_comp | ||
) |
Create and return shared pointer to FieldFE object.
Definition at line 27 of file vec_seq_double.cc.
|
inline |
Fill all values of data vector with given value.
Definition at line 85 of file vec_seq_double.hh.
template void VectorSeqDouble::fill_output_data | ( | std::shared_ptr< FieldFE< spacedim, Value > > | field_ptr | ) |
Fill output data of field_ptr.
Set data to data vector of field in correct order according to values of DOF handler indices.
Definition at line 82 of file vec_seq_double.cc.
|
inline |
Getter for PETSC vector of output data (e.g. can be used by scatters).
Definition at line 71 of file vec_seq_double.hh.
|
inline |
Getter for shared pointer of output data.
Definition at line 63 of file vec_seq_double.hh.
|
inline |
Access to the vector element on index idx
.
Definition at line 113 of file vec_seq_double.hh.
|
inline |
Create shared pointer and PETSC vector with given size.
Definition at line 55 of file vec_seq_double.hh.
|
inline |
Getter for shared pointer of output data.
Definition at line 77 of file vec_seq_double.hh.
|
private |
stored vector of data in PETSC format
Definition at line 123 of file vec_seq_double.hh.
|
private |
shared pointer to vector of data
Definition at line 121 of file vec_seq_double.hh.
|
private |
Definition at line 130 of file vec_seq_double.hh.
|
private |
Finite element objects (allow to create DOF handler)
Definition at line 125 of file vec_seq_double.hh.
|
private |
Definition at line 126 of file vec_seq_double.hh.
|
private |
Definition at line 127 of file vec_seq_double.hh.
|
private |
Definition at line 128 of file vec_seq_double.hh.