From: wolf Date: Tue, 4 May 1999 08:21:56 +0000 (+0000) Subject: Apply Guido's fix for the function returning second derivatives also. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79c744879dcbf187f084c3438fd87da370737462;p=dealii-svn.git Apply Guido's fix for the function returning second derivatives also. git-svn-id: https://svn.dealii.org/trunk@1259 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/fe_values.cc b/deal.II/deal.II/source/fe/fe_values.cc index 7b614b4d3d..048ebe4ade 100644 --- a/deal.II/deal.II/source/fe/fe_values.cc +++ b/deal.II/deal.II/source/fe/fe_values.cc @@ -217,7 +217,10 @@ FEValuesBase::shape_2nd_derivative (const unsigned int i, template void FEValuesBase::get_function_2nd_derivatives (const Vector &fe_function, - vector > &second_derivatives) const { + vector > &second_derivatives) const +{ + Assert (fe->n_components == 1, + ExcWrongNoOfComponents()); Assert (second_derivatives.size() == n_quadrature_points, ExcWrongVectorSize(second_derivatives.size(), n_quadrature_points));