Skip to content
Snippets Groups Projects
Commit 315471dc authored by podlesny's avatar podlesny
Browse files

add regularity check for hessian

parent 7d28070f
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,8 @@ class WrappedScalarFriction : public LocalFriction<dimension> { ...@@ -136,7 +136,8 @@ class WrappedScalarFriction : public LocalFriction<dimension> {
}*/ }*/
auto tangential_x = removeNormal(x); auto tangential_x = removeNormal(x);
const double xnorm = tangential_x.two_norm(); const double xnorm = tangential_x.two_norm();
if (xnorm <= 0.0)
if (std::isinf(func_.regularity(xnorm)) or xnorm<=0.0)
return; return;
VectorType y = tangential_x; VectorType y = tangential_x;
......
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