From: Matthias Maier Date: Thu, 7 May 2015 08:20:32 +0000 (+0200) Subject: silence a warning, part 2 X-Git-Tag: v8.3.0-rc1~194^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F908%2Fhead;p=dealii.git silence a warning, part 2 --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index ff7c0b4445..a2715b986f 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -6901,10 +6901,11 @@ namespace VectorTools const InVector &fe_function, const Point &point) { +#ifdef DEBUG const FiniteElement &fe = dof.get_fe(); - Assert(fe.n_components() == 1, ExcMessage ("Finite element is not scalar as is necessary for this function")); +#endif std::vector > gradient(1); point_gradient (mapping, dof, fe_function, point, gradient); @@ -6920,10 +6921,11 @@ namespace VectorTools const InVector &fe_function, const Point &point) { +#ifdef DEBUG const hp::FECollection &fe = dof.get_fe(); - Assert(fe.n_components() == 1, ExcMessage ("Finite element is not scalar as is necessary for this function")); +#endif std::vector > gradient(1); point_gradient (mapping, dof, fe_function, point, gradient);