From 88c0792524ba9f31b988f22ecdee5527ad860150 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Wed, 30 Jan 2013 18:17:32 +0100 Subject: [PATCH] Print a # at the end of each line --- src/one-body-sample.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index afeea73e..1e5016fa 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -416,8 +416,13 @@ int main(int argc, char *argv[]) { } if (state_fpi > 1) { double const correctionNorm = energyNorm.diff(u_saved, u); - if (correctionNorm < fixedPointTolerance) + if (correctionNorm < fixedPointTolerance) { + if (parset.get<bool>("printProgress")) { + std::cerr << '#'; + std::cerr.flush(); + } break; + } } if (state_fpi == state_fpi_max) DUNE_THROW(Dune::Exception, "FPI failed to converge"); -- GitLab