diff --git a/src/bisection-example-flexible.cc b/src/bisection-example-flexible.cc index 75847a33c61533f65329a32e09f051bd3cebe05f..62d3d7df13cb01ac85a379c3c06c08e1f6f16ac9 100644 --- a/src/bisection-example-flexible.cc +++ b/src/bisection-example-flexible.cc @@ -72,7 +72,7 @@ class SampleFunctional { } Dune::dverb << "Interval now [" << l << "," << r << "]" << std::endl; - // Debugging +#ifndef NDEBUG { SmallVector tmpl = x; tmpl.axpy(l, descDir); @@ -81,6 +81,7 @@ class SampleFunctional { assert(directionalDerivative(tmpl, descDir) < 0); assert(directionalDerivative(tmpr, descDir) > 0); } +#endif double m = l / 2 + r / 2; SmallVector middle = SmallVector(0.0);