From 37d84de09c4b1b8a1def021b655eb773fa23bd74 Mon Sep 17 00:00:00 2001 From: Adrian Diaz Date: Thu, 18 Apr 2019 15:55:21 -0600 Subject: [PATCH] flushing buffer to see more messages for error->one calls --- src/error.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/error.cpp b/src/error.cpp index 7c2d3c5409..cc80dcb4d8 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -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 }