Public Member Functions | Private Attributes

MeshWorker::MGVectorData< VECTOR, dim, spacedim > Class Template Reference
[The MeshWorker interface]

Inheritance diagram for MeshWorker::MGVectorData< VECTOR, dim, spacedim >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MGVectorData ()
 MGVectorData (const VectorSelector &)
void initialize (const NamedData< MGLevelObject< VECTOR > * > &)
void initialize (const MGLevelObject< VECTOR > *, const std::string &name)
virtual void mg_fill (std::vector< std::vector< std::vector< double > > > &values, std::vector< std::vector< std::vector< Tensor< 1, dim > > > > &gradients, std::vector< std::vector< std::vector< Tensor< 2, dim > > > > &hessians, const FEValuesBase< dim, spacedim > &fe, unsigned int level, const std::vector< unsigned int > &index, unsigned int component, unsigned int n_comp, unsigned int start, unsigned int size) const
std::size_t memory_consumption () const

Private Attributes

NamedData< SmartPointer< const
MGLevelObject< VECTOR >
, MGVectorData< VECTOR, dim,
spacedim > > > 
data

Detailed Description

template<class VECTOR, int dim, int spacedim = dim>
class MeshWorker::MGVectorData< VECTOR, dim, spacedim >

Based on VectorSelector, this is the class that implements the function VectorDataBase::fill() for a certain type of multilevel vectors, using NamedData to identify vectors by name.

Author:
Guido Kanschat, 2010

Definition at line 410 of file vector_selector.h.


Constructor & Destructor Documentation

template<class VECTOR , int dim, int spacedim = dim>
MeshWorker::MGVectorData< VECTOR, dim, spacedim >::MGVectorData (  )

Constructor.

template<class VECTOR , int dim, int spacedim = dim>
MeshWorker::MGVectorData< VECTOR, dim, spacedim >::MGVectorData ( const VectorSelector  )

Constructor using a prefilled VectorSelector


Member Function Documentation

template<class VECTOR , int dim, int spacedim = dim>
void MeshWorker::MGVectorData< VECTOR, dim, spacedim >::initialize ( const NamedData< MGLevelObject< VECTOR > * > &   )

Initialize with a NamedData object and cache the indices in the VectorSelector base class.

Note:
Make sure the VectorSelector base class was filled with reasonable data before calling this function.
template<class VECTOR , int dim, int spacedim = dim>
void MeshWorker::MGVectorData< VECTOR, dim, spacedim >::initialize ( const MGLevelObject< VECTOR > *  ,
const std::string &  name 
)

Initialize with a single vector and cache the indices in the VectorSelector base class.

Note:
Make sure the VectorSelector base class was filled with reasonable data before calling this function.
template<class VECTOR , int dim, int spacedim = dim>
virtual void MeshWorker::MGVectorData< VECTOR, dim, spacedim >::mg_fill ( std::vector< std::vector< std::vector< double > > > &  values,
std::vector< std::vector< std::vector< Tensor< 1, dim > > > > &  gradients,
std::vector< std::vector< std::vector< Tensor< 2, dim > > > > &  hessians,
const FEValuesBase< dim, spacedim > &  fe,
unsigned int  level,
const std::vector< unsigned int > &  index,
unsigned int  component,
unsigned int  n_comp,
unsigned int  start,
unsigned int  size 
) const [virtual]

Fill the local data vector from level vectors. Performs exactly what the other fill() does, but uses the cell level to access a single level out of a hierarchy of level vectors, instead of a global data vector on the active cells.

Reimplemented from MeshWorker::VectorDataBase< dim, spacedim >.

template<class VECTOR , int dim, int spacedim = dim>
std::size_t MeshWorker::MGVectorData< VECTOR, dim, spacedim >::memory_consumption (  ) const

The memory used by this object.

Reimplemented from MeshWorker::VectorDataBase< dim, spacedim >.


Member Data Documentation

template<class VECTOR , int dim, int spacedim = dim>
NamedData<SmartPointer<const MGLevelObject<VECTOR>,MGVectorData<VECTOR,dim,spacedim> > > MeshWorker::MGVectorData< VECTOR, dim, spacedim >::data [private]

Definition at line 470 of file vector_selector.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:15 by doxygen 1.7.2