From 4e61ec102b7ef9ac884554b99adceffa7cf7a4b7 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Wed, 4 Jan 2012 15:59:37 +0100 Subject: [PATCH] Make an assertion fatal Made possible by 1e279e0c5f62ca42a9c65bf739b3f96467a04ece --- dune/tectonic/myblockproblem.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh index afd98c30..19ea4959 100644 --- a/dune/tectonic/myblockproblem.hh +++ b/dune/tectonic/myblockproblem.hh @@ -122,14 +122,14 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { localA = <Av,v> localb = <b - Au, v> */ + MyDirectionalConvexFunction<Dune::GlobalNonlinearity<block_size>> const psi( localA, localb, problem.phi, u, v); Interval<double> D; psi.subDiff(0, D); - // FIXME: this should never happen to begin with if (D[1] >= 0) - return 0.0; + assert(false); int bisectionsteps = 0; Bisection bisection(0.0, 1.0, 1e-12, true, 0); // TODO -- GitLab