Reference documentation for deal.II version Git 4abc4a1666 2020-07-04 19:58:34 +0200
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Public Member Functions | Public Attributes | List of all members
SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct Struct Reference

Public Member Functions

 Pointerstruct ()
 
 Pointerstruct (std::vector< types::global_dof_index > *indices_ptr_in, const unsigned int active_fe_index_in=0)
 
 Pointerstruct (std::vector< Vector< typename VectorType::value_type >> *dof_values_ptr_in, const unsigned int active_fe_index_in=0)
 
std::size_t memory_consumption () const
 

Public Attributes

std::vector< types::global_dof_index > * indices_ptr
 
std::vector< Vector< typename VectorType::value_type > > * dof_values_ptr
 
unsigned int active_fe_index
 

Detailed Description

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
struct SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct

All cell data (the dof indices and the dof values) should be accessible from each cell. As each cell has got only one user_pointer, multiple pointers to the data need to be packetized in a structure. Note that in our case on each cell either the vector<unsigned int> indices (if the cell will be refined) or the vector<double> dof_values (if the children of this cell will be deleted) is needed, hence one user_pointer should be sufficient, but to allow some error checks and to preserve the user from making user errors the user_pointer will be 'multiplied' by this structure.

Definition at line 533 of file solution_transfer.h.

Constructor & Destructor Documentation

◆ Pointerstruct() [1/3]

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::Pointerstruct ( )
inline

Definition at line 535 of file solution_transfer.h.

◆ Pointerstruct() [2/3]

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::Pointerstruct ( std::vector< types::global_dof_index > *  indices_ptr_in,
const unsigned int  active_fe_index_in = 0 
)
inline

Definition at line 540 of file solution_transfer.h.

◆ Pointerstruct() [3/3]

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::Pointerstruct ( std::vector< Vector< typename VectorType::value_type >> *  dof_values_ptr_in,
const unsigned int  active_fe_index_in = 0 
)
inline

Definition at line 546 of file solution_transfer.h.

Member Function Documentation

◆ memory_consumption()

template<int dim, typename VectorType , typename DoFHandlerType >
std::size_t SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::memory_consumption ( ) const

Definition at line 589 of file solution_transfer.cc.

Member Data Documentation

◆ indices_ptr

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
std::vector<types::global_dof_index>* SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::indices_ptr

Definition at line 556 of file solution_transfer.h.

◆ dof_values_ptr

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
std::vector<Vector<typename VectorType::value_type> >* SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::dof_values_ptr

Definition at line 557 of file solution_transfer.h.

◆ active_fe_index

template<int dim, typename VectorType = Vector<double>, typename DoFHandlerType = DoFHandler<dim>>
unsigned int SolutionTransfer< dim, VectorType, DoFHandlerType >::Pointerstruct::active_fe_index

Definition at line 558 of file solution_transfer.h.


The documentation for this struct was generated from the following files: