From: Matthias Maier Date: Thu, 7 May 2015 07:50:33 +0000 (+0200) Subject: silence a warning X-Git-Tag: v8.3.0-rc1~195^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd599efe016c31cba503b951a715973ff7ed328;p=dealii.git silence a warning --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 3ec9ff28b3..ff7c0b4445 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -6724,10 +6724,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 Vector value(1); point_value(mapping, dof, fe_function, point, value); @@ -6743,10 +6744,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 Vector value(1); point_value(mapping, dof, fe_function, point, value);