Commit 37d84de0 authored by Adrian Diaz's avatar Adrian Diaz
Browse files

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

parent 89886032
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
}