From 8fbce1edfca2f9c841119b602ed06b91a04906ee Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Fri, 9 Sep 2011 17:15:09 +0200 Subject: [PATCH] More precise debugging info --- src/bisection-example-new.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bisection-example-new.cc b/src/bisection-example-new.cc index f075e31a..972203c9 100644 --- a/src/bisection-example-new.cc +++ b/src/bisection-example-new.cc @@ -240,7 +240,7 @@ void testSampleFunction() { SampleFunctional::SmallVector correction = J.minimise(start, 20); assert(J(start + correction) <= J(start)); assert(std::abs(J(start + correction) + 0.254644) < 1e-8); - std::cout << J(start + correction) << std::endl; + std::cout << "Arrived at J(...) = " << J(start + correction) << std::endl; } void testTrivialFunction() { @@ -266,7 +266,7 @@ void testTrivialFunction() { SampleFunctional::SmallVector correction = J.minimise(start, 20); assert(J(start + correction) <= J(start)); assert(std::abs(J(start + correction) + 0.83333333) < 1e-8); - std::cout << J(start + correction) << std::endl; + std::cout << "Arrived at J(...) = " << J(start + correction) << std::endl; } int main() { -- GitLab