Use utils::flush_buffers() in error.cpp and thermo.cpp
This commit is contained in:
@ -213,8 +213,7 @@ void Error::one(const std::string &file, int line, const std::string &str)
|
|||||||
|
|
||||||
throw LAMMPSAbortException(mesg, world);
|
throw LAMMPSAbortException(mesg, world);
|
||||||
#else
|
#else
|
||||||
if (screen) fflush(screen);
|
utils::flush_buffers(lmp);
|
||||||
if (logfile) fflush(logfile);
|
|
||||||
KokkosLMP::finalize();
|
KokkosLMP::finalize();
|
||||||
MPI_Abort(world,1);
|
MPI_Abort(world,1);
|
||||||
exit(1); // to trick "smart" compilers into believing this does not return
|
exit(1); // to trick "smart" compilers into believing this does not return
|
||||||
|
|||||||
@ -375,8 +375,7 @@ void Thermo::compute(int flag)
|
|||||||
|
|
||||||
if (me == 0) {
|
if (me == 0) {
|
||||||
utils::logmesg(lmp,line);
|
utils::logmesg(lmp,line);
|
||||||
if (screen && flushflag) fflush(screen);
|
if (flushflag) utils::flush_buffers(lmp);
|
||||||
if (logfile && flushflag) fflush(logfile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// set to 1, so that subsequent invocations of CPU time will be non-zero
|
// set to 1, so that subsequent invocations of CPU time will be non-zero
|
||||||
|
|||||||
Reference in New Issue
Block a user