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

Do not assume that we find a direction of descent

parent c8e1f18f
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,8 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { ...@@ -131,7 +131,8 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
Interval<double> D; Interval<double> D;
psi.subDiff(0, D); psi.subDiff(0, D);
if (D[1] > 0) { if (D[1] > 0) {
assert(false); // NOTE: Numerical instability can actually get us here // NOTE: Numerical instability can actually get us here
assert(abs(D[1]) < 1e-15);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment