]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Forbid the use of FE_Q for degree==0.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Oct 2005 14:37:23 +0000 (14:37 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Oct 2005 14:37:23 +0000 (14:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@11611 0785d39b-7218-0410-832d-ea1e28bc413d

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

index bdddc26a3dea91fbcf5856b013dcce73c5f406d5..47abd0e0dbd158bc966a808690f45aa4cea88544 100644 (file)
@@ -192,6 +192,10 @@ FE_Q<dim>::FE_Q (const unsigned int degree)
                  std::vector<std::vector<bool> >(1, std::vector<bool>(1,true))),
                face_index_map(FE_Q_Helper::invert_numbering(face_lexicographic_to_hierarchic_numbering (degree)))
 {
+  Assert (degree > 0,
+          ExcMessage ("This element can only be used for polynomial degrees "
+                      "at least zero"));
+  
   std::vector<unsigned int> renumber (this->dofs_per_cell);
   FETools::hierarchic_to_lexicographic_numbering (*this, renumber);
   this->poly_space.set_numbering(renumber);

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.