Flush streams when not writing newline character
authorErik Lindahl <erik@kth.se>
Sun, 8 May 2016 11:11:02 +0000 (13:11 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 10 May 2016 13:58:55 +0000 (15:58 +0200)
commit85d59d175c1a3850b2843d9636e43f4fd616e356
tree584363dfb7e7854ef2bc7fd0863aa92b67b48d84
parentb7e4f30d0c04e7d0d1b3ec026ce89415f9dcfc2e
Flush streams when not writing newline character

Some of our routines use the carriage return without a newline
to keep writing the status e.g. on stderr.
For some operating systems this seems to lead to the output
being cached in the buffers, so this change adds an explicit
fflush() for these print stamements.

Fixed #1772.

Change-Id: I3ad9c4f0e962d8a0b2f8d2341af69f0e3d01a477
29 files changed:
src/gromacs/correlationfunctions/autocorr.cpp
src/gromacs/ewald/pme-load-balancing.cpp
src/gromacs/fileio/enxio.cpp
src/gromacs/fileio/trxio.cpp
src/gromacs/gmxana/anadih.cpp
src/gromacs/gmxana/gmx_analyze.cpp
src/gromacs/gmxana/gmx_cluster.cpp
src/gromacs/gmxana/gmx_dipoles.cpp
src/gromacs/gmxana/gmx_enemat.cpp
src/gromacs/gmxana/gmx_hbond.cpp
src/gromacs/gmxana/gmx_helix.cpp
src/gromacs/gmxana/gmx_nmens.cpp
src/gromacs/gmxana/gmx_pme_error.cpp
src/gromacs/gmxana/gmx_rms.cpp
src/gromacs/gmxana/gmx_rmsf.cpp
src/gromacs/gmxana/gmx_rotmat.cpp
src/gromacs/gmxana/gmx_trjcat.cpp
src/gromacs/gmxana/gmx_trjconv.cpp
src/gromacs/gmxana/gmx_vanhove.cpp
src/gromacs/gmxana/gmx_wham.cpp
src/gromacs/gmxana/sfactor.cpp
src/gromacs/gmxpreprocess/insert-molecules.cpp
src/gromacs/gmxpreprocess/resall.cpp
src/gromacs/gmxpreprocess/x2top.cpp
src/gromacs/linearalgebra/eigensolver.cpp
src/gromacs/mdlib/minimize.cpp
src/gromacs/mdlib/sim_util.cpp
src/gromacs/tools/check.cpp
src/gromacs/tools/convert_tpr.cpp