Unverified Commit e3d7b52b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #1431 from Adrian-Diaz/print-error-messages

flushing screen and logfile stdio buffers to see more error messages for error->one calls
parents c55174ac 37d84de0
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
}