From 7d5bcf735f138617cb333f48c04273ea852a56f9 Mon Sep 17 00:00:00 2001 From: podlesny <podlesny@zedat.fu-berlin.de> Date: Sun, 14 Mar 2021 17:28:36 +0100 Subject: [PATCH] add braces around if block --- dune/tectonic/data-structures/friction/localfriction.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dune/tectonic/data-structures/friction/localfriction.hh b/dune/tectonic/data-structures/friction/localfriction.hh index 7a477b5c..e6014373 100644 --- a/dune/tectonic/data-structures/friction/localfriction.hh +++ b/dune/tectonic/data-structures/friction/localfriction.hh @@ -61,9 +61,10 @@ class WrappedScalarFriction : public LocalFriction<dimension> { double regularity(VectorType const &x) const override { auto tangential_x = removeNormal(x); - double const xnorm = tangential_x.two_norm(); - if (xnorm < 0.0) - return std::numeric_limits<double>::infinity(); + double xnorm = tangential_x.two_norm(); + if (xnorm < 0.0) { + return std::numeric_limits<double>::infinity(); + } return func_.regularity(xnorm); } -- GitLab