From 30310c8a7d7f8b06e27e92943363c58d12c04644 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sat, 10 Sep 2011 21:19:37 +0200
Subject: [PATCH] Polish debugging info

---
 src/bisection-example-new.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bisection-example-new.cc b/src/bisection-example-new.cc
index 2e0f9181..ee3983c5 100644
--- a/src/bisection-example-new.cc
+++ b/src/bisection-example-new.cc
@@ -146,13 +146,14 @@ void functionTester(
     SampleFunctional<dim, Function> J,
     typename SampleFunctional<dim, Function>::SmallVector &start, size_t runs) {
   typename SampleFunctional<dim, Function>::SmallVector correction;
+  std::cout << "Old value: J(...) = " << J(start) << std::endl;
   for (size_t i = 1; i <= runs; ++i) {
     correction = J.minimise(start);
     start += correction;
     if (i != runs)
       std::cout << "New value: J(...) = " << J(start) << std::endl;
   }
-  std::cout << "Arrived at J(...) = " << J(start) << std::endl;
+  std::cout << "Final value J(...) = " << J(start) << std::endl;
 }
 
 void testSampleFunction() {
-- 
GitLab