diff --git a/src/bisection-example-new.cc b/src/bisection-example-new.cc index 2e0f918124cd97ec5f4482091589328ae7a26caf..ee3983c589578f773b262691318dfb8bf7d21228 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() {