stardis-solver

Solve coupled heat transfers
git clone git://git.meso-star.fr/stardis-solver.git
Log | Files | Refs | README | LICENSE

commit 10678aac14179e951360ecdb8968818372f36aff
parent 7bdfdbc395b9910d65a3907f247c988490e800bb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 21 Apr 2023 09:10:32 +0200

Flush the output stream in the dump_<mesh|segments> functions

If a test crashed, the data written to the stream might not actually be
written. Flushing solves this problem.

Diffstat:
Msrc/test_sdis_utils.h | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/test_sdis_utils.h b/src/test_sdis_utils.h @@ -285,6 +285,7 @@ dump_mesh (unsigned long)(ids[i*3+1] + 1), (unsigned long)(ids[i*3+2] + 1)); } + fflush(stream); } static INLINE void @@ -306,6 +307,7 @@ dump_segments (unsigned long)(ids[i*2+0] + 1), (unsigned long)(ids[i*2+1] + 1)); } + fflush(stream); } static INLINE void