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(
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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment