Skip to content
Snippets Groups Projects
Commit 403aa801 authored by podlesny's avatar podlesny
Browse files

fix issue for no friction case

parent c9c27dcf
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ 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)
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