]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Guard new assertion with a test for standard orientation.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Aug 2013 10:05:07 +0000 (10:05 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 9 Aug 2013 10:05:07 +0000 (10:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@30261 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_data.cc

index 1a0f0b02b8ea0a998abdd754c965172031c93f42..3fec91c5a9020447fca4cc3b8c389fa4b34dfcb4 100644 (file)
@@ -115,12 +115,14 @@ face_to_cell_index (const unsigned int face_index,
 
   // see the function's documentation for an explanation of this
   // assertion -- in essence, derived classes have to implement
-  // an overloaded version of this function
-  Assert ((this->dofs_per_line <= 1) && (this->dofs_per_quad <= 1),
-          ExcMessage ("The function in this base class can not handle this case. "
-                      "Rather, the derived class you are using must provide "
-                      "an overloaded version but apparently hasn't done so. See "
-                      "the documentation of this function for more information."));
+  // an overloaded version of this function if we are to use any
+  // other than standard orientation
+  if ((face_orientation != true) || (face_flip != false) || (face_rotation != false))
+    Assert ((this->dofs_per_line <= 1) && (this->dofs_per_quad <= 1),
+            ExcMessage ("The function in this base class can not handle this case. "
+                        "Rather, the derived class you are using must provide "
+                        "an overloaded version but apparently hasn't done so. See "
+                        "the documentation of this function for more information."));
 
   // DoF on a vertex
   if (face_index < this->first_face_line_index)

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.