Skip to content
Snippets Groups Projects
Commit 7d5bcf73 authored by podlesny's avatar podlesny
Browse files

add braces around if block

parent 7e2b82e2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment