]> https://gitweb.dealii.org/ - dealii.git/commitdiff
silence a warning, part 2 908/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 7 May 2015 08:20:32 +0000 (10:20 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Thu, 7 May 2015 08:20:32 +0000 (10:20 +0200)
include/deal.II/numerics/vector_tools.templates.h

index ff7c0b4445dd53f7281f1307ac698e22b80e28f3..a2715b986fb032cdc09cd5d00304771c3079c96b 100644 (file)
@@ -6901,10 +6901,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
 
     std::vector<Tensor<1, dim> > gradient(1);
     point_gradient (mapping, dof, fe_function, point, gradient);
@@ -6920,10 +6921,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
 
     std::vector<Tensor<1, dim> > gradient(1);
     point_gradient (mapping, dof, fe_function, point, gradient);

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.