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

Print the solution

parent 2199d14a
Branches
No related tags found
No related merge requests found
...@@ -21,7 +21,8 @@ double functionTester(Dune::SampleFunctional<dim> J, ...@@ -21,7 +21,8 @@ double functionTester(Dune::SampleFunctional<dim> J,
double const original = J(start); double const original = J(start);
Dune::minimise(J, start, runs, bisection); Dune::minimise(J, start, runs, bisection);
double const final = J(start); double const final = J(start);
std::cout << boost::format("%8g -> %e") % original % final << std::endl; std::cout << boost::format("%8g -> %e (%e)") % original % final % start
<< std::endl;
return final; return final;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment