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

[Cleanup] Write progress to std::cout

parent 5afeea1d
No related branches found
No related tags found
No related merge requests found
......@@ -550,13 +550,13 @@ int main(int argc, char *argv[]) {
iterationWriter << iterationCounter << " ";
if (printProgress)
(std::cerr << '.').flush();
(std::cout << '.').flush();
if (state_fpi > 1) {
double const correctionNorm = AMNorm.diff(u_saved, u);
if (correctionNorm < fixedPointTolerance) {
if (printProgress)
(std::cerr << '#').flush();
(std::cout << '#').flush();
break;
}
......@@ -567,7 +567,7 @@ int main(int argc, char *argv[]) {
u_saved = u;
}
if (printProgress)
std::cerr << std::endl;
std::cout << std::endl;
writer.writeInfo(alpha, u, v);
iterationWriter << std::endl;
......
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