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

[Cleanup] Print line numbers

parent 75e86f3e
No related branches found
No related tags found
No related merge requests found
...@@ -482,6 +482,9 @@ int main(int argc, char *argv[]) { ...@@ -482,6 +482,9 @@ int main(int argc, char *argv[]) {
auto const verbosity = auto const verbosity =
parset.get<Solver::VerbosityMode>("v.solver.verbosity"); parset.get<Solver::VerbosityMode>("v.solver.verbosity");
for (size_t run = 1; run <= timesteps; ++run) { for (size_t run = 1; run <= timesteps; ++run) {
if (printProgress)
(std::cout << boost::format("%7d ") % run << " ").flush();
VectorType u; VectorType u;
double lastCorrection; double lastCorrection;
...@@ -554,12 +557,8 @@ int main(int argc, char *argv[]) { ...@@ -554,12 +557,8 @@ int main(int argc, char *argv[]) {
if (state_fpi > 1) { if (state_fpi > 1) {
double const correctionNorm = AMNorm.diff(u_saved, u); double const correctionNorm = AMNorm.diff(u_saved, u);
if (correctionNorm < fixedPointTolerance) { if (correctionNorm < fixedPointTolerance)
if (printProgress)
(std::cout << '#').flush();
break; break;
}
} }
if (state_fpi == state_fpi_max) if (state_fpi == state_fpi_max)
DUNE_THROW(Dune::Exception, "FPI failed to converge"); DUNE_THROW(Dune::Exception, "FPI failed to converge");
......
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