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

Make an assertion fatal

Made possible by 1e279e0c5f62ca42a9c65bf739b3f96467a04ece
parent 97cd277e
No related branches found
No related tags found
No related merge requests found
...@@ -122,14 +122,14 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { ...@@ -122,14 +122,14 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
localA = <Av,v> localA = <Av,v>
localb = <b - Au, v> localb = <b - Au, v>
*/ */
MyDirectionalConvexFunction<Dune::GlobalNonlinearity<block_size>> const psi( MyDirectionalConvexFunction<Dune::GlobalNonlinearity<block_size>> const psi(
localA, localb, problem.phi, u, v); localA, localb, problem.phi, u, v);
Interval<double> D; Interval<double> D;
psi.subDiff(0, D); psi.subDiff(0, D);
// FIXME: this should never happen to begin with
if (D[1] >= 0) if (D[1] >= 0)
return 0.0; assert(false);
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.
Please register or to comment