Skip to content
Snippets Groups Projects
Commit 044d511a authored by Elias Pipping's avatar Elias Pipping
Browse files

[Extend] Handle the nonsmooth case x=0

parent 31bc3dec
No related branches found
No related tags found
No related merge requests found
...@@ -57,8 +57,7 @@ template <size_t dimension> class LocalFriction { ...@@ -57,8 +57,7 @@ template <size_t dimension> class LocalFriction {
Interval<double> &D) const { Interval<double> &D) const {
double const xnorm = x.two_norm(); double const xnorm = x.two_norm();
if (xnorm <= 0.0) if (xnorm <= 0.0)
D[0] = D[1] = 0.0; // WARNING: we assume that the outer D[0] = D[1] = func->differential(0.0) * v.two_norm();
// function approaches zero superlinearly
else else
D[0] = D[1] = func->differential(xnorm) * dotFirstNormalised(x, v); D[0] = D[1] = func->differential(xnorm) * dotFirstNormalised(x, v);
} }
......
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