]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Assertions for 2nd derivatives
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 9 Mar 2001 13:41:24 +0000 (13:41 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 9 Mar 2001 13:41:24 +0000 (13:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@4180 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 67abddfe975c697e143b616c53f7e2c964fd7943..e67e3e2b5fc46827f02fc6836a450ea8a6b79e51 100644 (file)
@@ -302,6 +302,11 @@ compute_2nd (const Mapping<dim>                   &mapping,
             InternalDataBase                     &fe_internal,
             FEValuesData<dim>                    &data) const
 {
+  Assert ((fe_internal.update_each | fe_internal.update_once)
+         & update_second_derivatives,
+         ExcInternalError());
+  Assert (data.shape_2nd_derivatives.size() == dofs_per_cell,
+         ExcInternalError());
                                   // Number of quadrature points
   const unsigned int n_q_points = data.shape_2nd_derivatives[0].size();
 

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.