From 87ef648c9d1e9d089b56e6c1725676910a2907ca Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 2 Aug 2021 07:59:07 -0400 Subject: [PATCH] Fix a parenthesis. I see a bunch of warnings of the form /Users/runner/work/dealii/dealii/include/deal.II/matrix_free/tools.h:497:35: error: taking the absolute value of unsigned type 'bool' has no effect [-Werror,-Wabsolute-value] 854 std::abs(values_dofs[j][0] && on the CI tester. --- include/deal.II/matrix_free/tools.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/deal.II/matrix_free/tools.h b/include/deal.II/matrix_free/tools.h index a0fda74183..8eb3217c27 100644 --- a/include/deal.II/matrix_free/tools.h +++ b/include/deal.II/matrix_free/tools.h @@ -493,11 +493,9 @@ namespace MatrixFreeTools for (unsigned int j = 0; j < dofs_per_component; ++j) - if (1e-10 < - std::abs(values_dofs[j][0] && - (j != i || - 1e-10 < std::abs(values_dofs[j][0] - - 1.0)))) + if (1e-10 < std::abs(values_dofs[j][0]) && + (j != i || + 1e-10 < std::abs(values_dofs[j][0] - 1.0))) locally_relevant_constrains_hn.emplace_back( j, i, values_dofs[j][0]); } -- 2.39.5