23#include <deal.II/grid/tria_iterator.templates.h>
43template <
int dim,
int spacedim,
bool lda>
44template <
class InputVector,
typename number>
47 const InputVector & values,
52 (this->dof_handler->hp_capability_enabled ==
false &&
57 if (this->is_active())
62 if ((this->dof_handler->hp_capability_enabled ==
false) ||
66 (fe_index == this->active_fe_index()) ||
68 this->get_dof_values(values, interpolated_values);
74 const unsigned int dofs_per_cell = this->get_fe().n_dofs_per_cell();
75 if (dofs_per_cell == 0)
77 interpolated_values = 0;
82 this->get_dof_values(values, tmp);
85 this->dof_handler->get_fe(fe_index).n_dofs_per_cell(),
86 this->get_fe().n_dofs_per_cell());
87 this->dof_handler->get_fe(fe_index).get_interpolation_matrix(
88 this->get_fe(), interpolation);
89 interpolation.
vmult(interpolated_values, tmp);
104 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
107 "You cannot call this function on non-active cells "
108 "of DoFHandler objects unless you provide an explicit "
109 "finite element index because they do not have naturally "
110 "associated finite element spaces associated: degrees "
111 "of freedom are only distributed on active cells for which "
112 "the active FE index has been set."));
115 this->get_dof_handler().get_fe(fe_index);
118 Assert(this->dof_handler !=
nullptr,
119 typename BaseClass::ExcInvalidObject());
120 Assert(interpolated_values.
size() == dofs_per_cell,
121 typename BaseClass::ExcVectorDoesNotMatch());
122 Assert(values.size() == this->dof_handler->n_dofs(),
123 typename BaseClass::ExcVectorDoesNotMatch());
136 interpolated_values = 0;
163 for (
unsigned int child = 0; child < this->n_children(); ++child)
169 this->child(child)->get_interpolated_dof_values(values,
177 for (
unsigned int i = 0; i < dofs_per_cell; ++i)
179 interpolated_values(i) += tmp2(i);
180 else if (tmp2(i) != number())
181 interpolated_values(i) = tmp2(i);
190#include "dof_accessor_get.inst"
void get_interpolated_dof_values(const InputVector &values, Vector< number > &interpolated_values, const types::fe_index fe_index=numbers::invalid_fe_index) const
unsigned int n_dofs_per_cell() const
virtual const FullMatrix< double > & get_restriction_matrix(const unsigned int child, const RefinementCase< dim > &refinement_case=RefinementCase< dim >::isotropic_refinement) const
bool restriction_is_additive(const unsigned int index) const
void vmult(Vector< number2 > &w, const Vector< number2 > &v, const bool adding=false) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
const types::fe_index invalid_fe_index
unsigned short int fe_index