]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Throw an exception if someone initializes an FEValues object with a quadrature formul...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 13 Apr 2012 07:51:20 +0000 (07:51 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 13 Apr 2012 07:51:20 +0000 (07:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@25408 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_values.cc

index 0dafb49d89b3473439390e33a73f92058ac47620..a839d72159e169ad77faea960d4ae8ca0bd976d0 100644 (file)
@@ -1790,6 +1790,10 @@ FEValuesBase<dim,spacedim>::FEValuesBase (const unsigned int n_q_points,
                 fe_data(0, typeid(*this).name()),
                 fe_values_views_cache (*this)
 {
+  Assert (n_q_points > 0,
+          ExcMessage ("There is nothing useful you can do with an FEValues "
+                      "object when using a quadrature formula with zero "
+                      "quadrature points!"));
   this->update_flags = flags;
 }
 

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.