Commit a1774169 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only flush the SFR.txt file every 32 steps.

parent 6465eb57
......@@ -2182,7 +2182,11 @@ void engine_step(struct engine *e) {
e->cosmology->a, e->cosmology->z,
e->sfh, e->step);
#ifdef SWIFT_DEBUG_CHECKS
fflush(e->sfh_logger);
#else
if (e->step % 32 == 0) fflush(e->sfh_logger);
#endif
}
if (!e->restarting)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment