]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Apply Guido's fix for the function returning second derivatives also.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 May 1999 08:21:56 +0000 (08:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 May 1999 08:21:56 +0000 (08:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@1259 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_values.cc

index 7b614b4d3d05f6dbd917d4564fd4510a84b2d4fc..048ebe4ade3cac2ed829959cc8d61b6f8485dccd 100644 (file)
@@ -217,7 +217,10 @@ FEValuesBase<dim>::shape_2nd_derivative (const unsigned int i,
 
 template <int dim>
 void FEValuesBase<dim>::get_function_2nd_derivatives (const Vector<double>   &fe_function,
-                                                     vector<Tensor<2,dim> > &second_derivatives) const {
+                                                     vector<Tensor<2,dim> > &second_derivatives) const
+{
+  Assert (fe->n_components == 1,
+         ExcWrongNoOfComponents());
   Assert (second_derivatives.size() == n_quadrature_points,
          ExcWrongVectorSize(second_derivatives.size(), n_quadrature_points));
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.