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

Soften assertion; Add a note

parent 548db504
No related branches found
No related tags found
No related merge requests found
......@@ -130,8 +130,10 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
Interval<double> D;
psi.subDiff(0, D);
if (D[1] >= 0)
assert(false);
if (D[1] > 0) {
assert(false); // NOTE: Numerical instability can actually get us here
return 0;
}
int bisectionsteps = 0;
Bisection bisection(0.0, 1.0, 1e-12, true, 0); // TODO
......
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