diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh index 9a34464617d3b716373af6367bb75d4eae69cbc5..a8d2818d0b78afda771774d77c9229853c78d150 100644 --- a/dune/tectonic/myblockproblem.hh +++ b/dune/tectonic/myblockproblem.hh @@ -99,6 +99,12 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { 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; + int bisectionsteps = 0; Bisection bisection(0.0, 1.0, 1e-12, true, 0); // TODO return bisection.minimize(psi, vnorm, 0.0, bisectionsteps) / vnorm; // TODO