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

Polish debugging info

parent dc4d1043
No related branches found
No related tags found
No related merge requests found
...@@ -146,13 +146,14 @@ void functionTester( ...@@ -146,13 +146,14 @@ void functionTester(
SampleFunctional<dim, Function> J, SampleFunctional<dim, Function> J,
typename SampleFunctional<dim, Function>::SmallVector &start, size_t runs) { typename SampleFunctional<dim, Function>::SmallVector &start, size_t runs) {
typename SampleFunctional<dim, Function>::SmallVector correction; typename SampleFunctional<dim, Function>::SmallVector correction;
std::cout << "Old value: J(...) = " << J(start) << std::endl;
for (size_t i = 1; i <= runs; ++i) { for (size_t i = 1; i <= runs; ++i) {
correction = J.minimise(start); correction = J.minimise(start);
start += correction; start += correction;
if (i != runs) if (i != runs)
std::cout << "New value: J(...) = " << J(start) << std::endl; 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() { void testSampleFunction() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment