]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a parenthesis. 12619/head
authorDavid Wells <drwells@email.unc.edu>
Mon, 2 Aug 2021 11:59:07 +0000 (07:59 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 2 Aug 2021 11:59:16 +0000 (07:59 -0400)
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

index a0fda74183cca245872250674262d6a6e70e16b6..8eb3217c27948a46cbdf7d0ed774b6a637e62a03 100644 (file)
@@ -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]);
                           }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.