]> https://gitweb.dealii.org/ - dealii.git/commitdiff
silence a warning 906/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 7 May 2015 07:50:33 +0000 (09:50 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 7 May 2015 07:50:33 +0000 (09:50 +0200)
include/deal.II/numerics/vector_tools.templates.h

index 3ec9ff28b3217ea84092feebfab11a771f1e23e8..ff7c0b4445dd53f7281f1307ac698e22b80e28f3 100644 (file)
@@ -6724,10 +6724,11 @@ namespace VectorTools
                const InVector        &fe_function,
                const Point<spacedim>      &point)
   {
+#ifdef DEBUG
     const FiniteElement<dim> &fe = dof.get_fe();
-
     Assert(fe.n_components() == 1,
            ExcMessage ("Finite element is not scalar as is necessary for this function"));
+#endif
 
     Vector<double> value(1);
     point_value(mapping, dof, fe_function, point, value);
@@ -6743,10 +6744,11 @@ namespace VectorTools
                const InVector        &fe_function,
                const Point<spacedim>      &point)
   {
+#ifdef DEBUG
     const hp::FECollection<dim, spacedim> &fe = dof.get_fe();
-
     Assert(fe.n_components() == 1,
            ExcMessage ("Finite element is not scalar as is necessary for this function"));
+#endif
 
     Vector<double> value(1);
     point_value(mapping, dof, fe_function, point, value);

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.