17 #ifndef __deal2__solution_transfer_h
18 #define __deal2__solution_transfer_h
24 #include <deal.II/base/config.h>
25 #include <deal.II/base/smartpointer.h>
26 #include <deal.II/lac/vector.h>
28 #include <deal.II/dofs/dof_handler.h>
32 DEAL_II_NAMESPACE_OPEN
204 template<
int dim,
typename VECTOR=Vector<
double>,
class DH=DoFHandler<dim> >
312 void interpolate (
const std::vector<VECTOR> &all_in,
313 std::vector<VECTOR> &all_out)
const;
400 none, pure_refinement, coarsening_and_refinement
439 Pointerstruct() : indices_ptr(0), dof_values_ptr(0), active_fe_index(0) {};
440 Pointerstruct(std::vector<types::global_dof_index> *indices_ptr_in,
441 const unsigned int active_fe_index_in = 0)
443 indices_ptr(indices_ptr_in),
445 active_fe_index(active_fe_index_in) {};
447 const unsigned int active_fe_index_in = 0) :
449 dof_values_ptr(dof_values_ptr_in),
450 active_fe_index(active_fe_index_in) {};
451 std::size_t memory_consumption ()
const;
453 std::vector<types::global_dof_index> *indices_ptr;
454 std::vector<Vector<typename VECTOR::value_type> > *dof_values_ptr;
455 unsigned int active_fe_index;
480 DEAL_II_NAMESPACE_CLOSE
DeclException0(ExcNotPrepared)
std::vector< std::vector< Vector< typename VECTOR::value_type > > > dof_values_on_cell
std::size_t memory_consumption() const
void prepare_for_coarsening_and_refinement(const std::vector< VECTOR > &all_in)
unsigned int global_dof_index
void refine_interpolate(const VECTOR &in, VECTOR &out) const
SmartPointer< const DH, SolutionTransfer< dim, VECTOR, DH > > dof_handler
std::map< std::pair< unsigned int, unsigned int >, Pointerstruct > cell_map
void interpolate(const std::vector< VECTOR > &all_in, std::vector< VECTOR > &all_out) const
void prepare_for_pure_refinement()
PreparationState prepared_for
types::global_dof_index n_dofs_old
SolutionTransfer(const DH &dof)
std::vector< std::vector< types::global_dof_index > > indices_on_cell