From 49eaba3843fa6fd806ece2c960c0826fcc6e41aa Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Wed, 8 Aug 2012 15:11:18 +0200 Subject: [PATCH] Drop assertion --- dune/tectonic/myblockproblem.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh index fb070099..fa727174 100644 --- a/dune/tectonic/myblockproblem.hh +++ b/dune/tectonic/myblockproblem.hh @@ -131,11 +131,9 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { Interval<double> D; psi.subDiff(0, D); - if (D[1] > 0) { - // NOTE: Numerical instability can actually get us here - assert(std::abs(D[1]) < 1e-12); + // NOTE: Numerical instability can actually get us here + if (D[1] > 0) return 0; - } int bisectionsteps = 0; Bisection bisection(0.0, 1.0, 1e-12, true, 0); // TODO -- GitLab