]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add asserts for FESystem.
authorbuerg <buerg@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Jan 2012 10:52:21 +0000 (10:52 +0000)
committerbuerg <buerg@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 29 Jan 2012 10:52:21 +0000 (10:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@24950 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/vectors.templates.h

index 578c21b52b5a8a02242e9cebb7ef6836aa95b53a..0bb918728339b010e7913ce977b3a287e47168f3 100644 (file)
@@ -3307,13 +3307,19 @@ namespace VectorTools
                    if (dynamic_cast<const FE_Nothing<dim>*> (&cell->get_fe ()) != 0)
                      return;
 
-                                                    // this is only
+                                                    // This is only
                                                     // implemented, if the
                                                     // FE is a Nedelec
-                                                    // element
-                   typedef FiniteElement<dim> FEL;
-                   AssertThrow (dynamic_cast<const FE_Nedelec<dim>*> (&cell->get_fe ()) != 0,
-                                typename FEL::ExcInterpolationNotImplemented ());
+                                                    // element. If the FE is
+                                                    // a FESystem we cannot
+                                                    // check this.
+                   if (dynamic_cast<const FESystem<dim>*> (&cell->get_fe ()) == 0)
+                     {
+                       typedef FiniteElement<dim> FEL;
+
+                       AssertThrow (dynamic_cast<const FE_Nedelec<dim>*> (&cell->get_fe ()) != 0,
+                                    typename FEL::ExcInterpolationNotImplemented ());
+                     }
 
                    for (unsigned int dof = 0; dof < dofs_per_face; ++dof)
                      dof_values[dof] = 0.0;

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.