15#ifndef dealii_cell_data_transfer_h
16#define dealii_cell_data_transfer_h
105template <
int dim,
int spacedim = dim,
typename VectorType = Vector<
double>>
128 const std::function<std::vector<value_type>(
131 &AdaptationStrategies::Refinement::preserve<dim, spacedim, value_type>,
156 unpack(
const VectorType &in, VectorType &out);
170 const std::function<std::vector<value_type>(
181 const std::vector<value_type> &children_indices)>
188 std::map<const typename Triangulation<dim, spacedim>::cell_iterator,
196 std::map<const typename Triangulation<dim, spacedim>::cell_iterator,
205 std::map<const typename Triangulation<dim, spacedim>::cell_iterator,
206 const std::set<unsigned int>>
CellDataTransfer(const Triangulation< dim, spacedim > &triangulation, const std::function< std::vector< value_type >(const typename Triangulation< dim, spacedim >::cell_iterator &parent, const value_type parent_value)> refinement_strategy=&AdaptationStrategies::Refinement::preserve< dim, spacedim, value_type >, const std::function< value_type(const typename Triangulation< dim, spacedim >::cell_iterator &parent, const std::vector< value_type > &children_values)> coarsening_strategy=&AdaptationStrategies::Coarsening::check_equality< dim, spacedim, value_type >)
void prepare_for_coarsening_and_refinement()
typename VectorType::value_type value_type
void unpack(const VectorType &in, VectorType &out)
std::map< const typename Triangulation< dim, spacedim >::cell_iterator, const unsigned int > refined_cells_active_index
const std::function< std::vector< value_type >(const typename Triangulation< dim, spacedim >::cell_iterator &parent, const value_type parent_value)> refinement_strategy
std::map< const typename Triangulation< dim, spacedim >::cell_iterator, const std::set< unsigned int > > coarsened_cells_active_index
ObserverPointer< const Triangulation< dim, spacedim >, CellDataTransfer< dim, spacedim, VectorType > > triangulation
const std::function< value_type(const typename Triangulation< dim, spacedim >::cell_iterator &parent, const std::vector< value_type > &children_indices)> coarsening_strategy
unsigned int n_active_cells_pre
std::map< const typename Triangulation< dim, spacedim >::cell_iterator, const unsigned int > persisting_cells_active_index
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE