]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make sure the common case actually works...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 10 Aug 2013 14:00:56 +0000 (14:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 10 Aug 2013 14:00:56 +0000 (14:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@30278 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_q_base.cc

index 36491b4237b4592e8de6e3a14a2abd957fb63b1d..7e549632844d8a04807c6b5dbb881bf1f0d41c20 100644 (file)
@@ -1053,8 +1053,13 @@ face_to_cell_index (const unsigned int face_index,
         // of pictures of how all the faces can look like with the various
         // flips and rotations.
         //
-        // that said, the Q2 case is easy enough to implement
-        Assert (this->dofs_per_line <= 1, ExcNotImplemented());
+        // that said, the Q2 case is easy enough to implement, as is the case
+        // where everything is in standard orientation
+        Assert ((this->dofs_per_line <= 1) ||
+                ((face_orientation == true) &&
+                 (face_flip == false) &&
+                 (face_rotation == false)),
+                ExcNotImplemented());
         adjusted_dof_index_on_line = dof_index_on_line;
         break;
       }
@@ -1079,7 +1084,11 @@ face_to_cell_index (const unsigned int face_index,
       // the same is true here as above for the 3d case -- someone will
       // just have to draw a bunch of pictures. in the meantime,
       // we can implement the Q2 case in which it is simple
-      Assert (this->dofs_per_quad <= 1, ExcNotImplemented());
+      Assert ((this->dofs_per_quad <= 1) ||
+              ((face_orientation == true) &&
+               (face_flip == false) &&
+               (face_rotation == false)),
+              ExcNotImplemented());
       return (this->first_quad_index
               + face * this->dofs_per_quad
               + 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.