Flow123d  release_2.2.0-914-gf1a3a4f
Public Types | Public Member Functions | Private Attributes | List of all members
VectorSeqDouble Class Reference

#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...
 
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< 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...
 

Detailed Description

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 43 of file vec_seq_double.hh.

Member Typedef Documentation

typedef std::shared_ptr< std::vector<double> > VectorSeqDouble::VectorSeq

Definition at line 45 of file vec_seq_double.hh.

Constructor & Destructor Documentation

VectorSeqDouble::~VectorSeqDouble ( )
inline

Destructor.

Definition at line 95 of file vec_seq_double.hh.

Member Function Documentation

template<int spacedim, class Value >
std::shared_ptr<FieldElementwise<spacedim, Value> > VectorSeqDouble::create_field ( unsigned int  n_comp)
inline

Create and return shared pointer to FieldElementwise object.

Definition at line 87 of file vec_seq_double.hh.

Here is the caller graph for this function:

void VectorSeqDouble::fill ( double  value)
inline

Fill all values of data vector with given value.

Definition at line 78 of file vec_seq_double.hh.

Here is the caller graph for this function:

Vec& VectorSeqDouble::get_data_petsc ( )
inline

Getter for PETSC vector of output data (e.g. can be used by scatters).

Definition at line 64 of file vec_seq_double.hh.

VectorSeq VectorSeqDouble::get_data_ptr ( )
inline

Getter for shared pointer of output data.

Definition at line 56 of file vec_seq_double.hh.

Here is the caller graph for this function:

double& VectorSeqDouble::operator[] ( unsigned int  idx)
inline

Access to the vector element on index idx.

Definition at line 103 of file vec_seq_double.hh.

void VectorSeqDouble::resize ( unsigned int  size)
inline

Create shared pointer and PETSC vector with given size.

Definition at line 48 of file vec_seq_double.hh.

Here is the caller graph for this function:

unsigned int VectorSeqDouble::size ( )
inline

Getter for shared pointer of output data.

Definition at line 70 of file vec_seq_double.hh.

Here is the caller graph for this function:

Member Data Documentation

Vec VectorSeqDouble::data_petsc_
private

stored vector of data in PETSC format

Definition at line 113 of file vec_seq_double.hh.

VectorSeq VectorSeqDouble::data_ptr_
private

shared pointer to vector of data

Definition at line 111 of file vec_seq_double.hh.


The documentation for this class was generated from the following file: