void get_function_laplacians (const InputVector &fe_function,
std::vector<typename ProductType<value_type,typename InputVector::value_type>::type> &laplacians) const;
+ /**
+ * @copydoc FEValuesViews::Vector::get_function_values_from_local_dof_values()
+ */
+ template <class InputVector>
+ void get_function_laplacians_from_local_dof_values (const InputVector &dof_values,
+ std::vector<typename OutputType<typename InputVector::value_type>::laplacian_type> &laplacians) const;
+
/**
* Return the third derivatives of the selected scalar component of the
* finite element function characterized by <tt>fe_function</tt> at the
do_function_laplacians (const ArrayView<Number> &dof_values,
const Table<2,dealii::Tensor<2,spacedim> > &shape_hessians,
const std::vector<typename Vector<dim,spacedim>::ShapeFunctionData> &shape_function_data,
- std::vector<typename ProductType<Number,dealii::Tensor<1,spacedim> >::type> &laplacians)
+ std::vector<typename Vector<dim,spacedim>::template OutputType<Number>::laplacian_type> &laplacians)
{
const unsigned int dofs_per_cell = dof_values.size();
const unsigned int n_quadrature_points = dofs_per_cell > 0 ?
AssertDimension (laplacians.size(), n_quadrature_points);
std::fill (laplacians.begin(), laplacians.end(),
- typename ProductType<Number,dealii::Tensor<1,spacedim> >::type());
+ typename Vector<dim,spacedim>::template OutputType<Number>::laplacian_type());
for (unsigned int shape_function=0;
shape_function<dofs_per_cell; ++shape_function)
}
+
+
+ template <int dim, int spacedim>
+ template <class InputVector>
+ void
+ Vector<dim,spacedim>::
+ get_function_laplacians_from_local_dof_values(const InputVector &dof_values,
+ std::vector<typename OutputType<typename InputVector::value_type>::laplacian_type> &laplacians) const
+ {
+ Assert (fe_values->update_flags & update_hessians,
+ (typename FEValuesBase<dim,spacedim>::ExcAccessToUninitializedField("update_hessians")));
+ Assert (laplacians.size() == fe_values->n_quadrature_points,
+ ExcDimensionMismatch(laplacians.size(), fe_values->n_quadrature_points));
+ Assert (fe_values->present_cell.get() != nullptr,
+ ExcMessage ("FEValues object is not reinit'ed to any cell"));
+ AssertDimension (dof_values.size(), fe_values->dofs_per_cell);
+
+ internal::do_function_laplacians<dim,spacedim>
+ (make_array_view(dof_values.begin(), dof_values.end()),
+ fe_values->finite_element_output.shape_hessians, shape_function_data, laplacians);
+ }
+
+
template <int dim, int spacedim>
template <class InputVector>
void
void FEValuesViews::Vector<deal_II_dimension, deal_II_space_dimension>
::get_function_hessians_from_local_dof_values<VEC<Number>>
(const VEC<Number>&, std::vector<typename OutputType<Number>::hessian_type>&) const;
+
+ template
+ void FEValuesViews::Vector<deal_II_dimension, deal_II_space_dimension>
+ ::get_function_laplacians_from_local_dof_values<VEC<Number>>
+ (const VEC<Number>&, std::vector<typename OutputType<Number>::value_type>&) const;
#endif
}