flushing buffer to see more messages for error->one calls

This commit is contained in:
Adrian Diaz
2019-04-18 15:55:21 -06:00
parent 898860328b
commit 37d84de09c

View File

@ -212,6 +212,8 @@ void Error::one(const char *file, int line, const char *str)
snprintf(msg, 100, "ERROR on proc %d: %s (%s:%d)\n", me, str, truncpath(file), line);
throw LAMMPSAbortException(msg, world);
#else
if (screen) fflush(screen);
if (logfile) fflush(logfile);
MPI_Abort(world,1);
#endif
}