From 4d9c8517fbd60586b3da2dbc61bea43605abc376 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 20 Jan 2024 11:42:17 -0500 Subject: [PATCH] fix compiler warning --- source/fe/fe_q_base.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/fe/fe_q_base.cc b/source/fe/fe_q_base.cc index 20dc0c5a2c..f5bfb1cc5c 100644 --- a/source/fe/fe_q_base.cc +++ b/source/fe/fe_q_base.cc @@ -1557,7 +1557,8 @@ FE_Q_Base::get_restriction_matrix( internal::FE_Q_Base::increment_indices(j_indices, dofs1d); } - Assert(std::fabs(sum_check - 1) < + (void)sum_check; + Assert(std::fabs(sum_check - 1.0) < std::max(eps, 5e-16 * std::sqrt(this->n_dofs_per_cell())), ExcInternalError("The entries in a row of the local " -- 2.39.5