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

Drop assertion

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