From a60668ed70cbb6aee0c61601c114cfaffe2730cf Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 7 May 2015 10:20:32 +0200 Subject: [PATCH] silence a warning, part 2 --- include/deal.II/numerics/vector_tools.templates.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.39.5