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

Write progress to stderr

parent dc6efef4
Branches
No related tags found
No related merge requests found
...@@ -294,8 +294,8 @@ int main(int argc, char *argv[]) { ...@@ -294,8 +294,8 @@ int main(int argc, char *argv[]) {
} }
} }
if (parset.get<bool>("printProgress")) { if (parset.get<bool>("printProgress")) {
std::cout << '.'; std::cerr << '.';
std::cout.flush(); std::cerr.flush();
} }
if (energyNorm.diff(u_diff_saved, u_diff) < if (energyNorm.diff(u_diff_saved, u_diff) <
parset.get<double>("solver.tnnmg.fixed_point_tolerance")) parset.get<double>("solver.tnnmg.fixed_point_tolerance"))
...@@ -306,7 +306,7 @@ int main(int argc, char *argv[]) { ...@@ -306,7 +306,7 @@ int main(int argc, char *argv[]) {
<< " iterations" << std::endl; << " iterations" << std::endl;
} }
if (parset.get<bool>("printProgress")) if (parset.get<bool>("printProgress"))
std::cout << std::endl; std::cerr << std::endl;
// Record the state, (scaled) displacement, and Neumann // Record the state, (scaled) displacement, and Neumann
// condition at a fixed node // condition at a fixed node
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment