diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc index 6571bb0048df56ecb77941daa9aefb39903b6e3a..7022365c19fe4209ef7eac56d46da189f4488ebb 100644 --- a/src/one-body-sample.cc +++ b/src/one-body-sample.cc @@ -499,17 +499,15 @@ int main(int argc, char *argv[]) { timeSteppingScheme->extractVelocity(v); iterationWriter << iterationCounter << " "; - if (printProgress) { - std::cerr << '.'; - std::cerr.flush(); - } + if (printProgress) + (std::cerr << '.').flush(); + if (state_fpi > 1) { double const correctionNorm = velocityEnergyNorm.diff(u_saved, u); if (correctionNorm < fixedPointTolerance) { - if (printProgress)) { - std::cerr << '#'; - std::cerr.flush(); - } + if (printProgress) + (std::cerr << '#').flush(); + break; } }