git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6724 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2011-08-18 15:03:14 +00:00
parent 031010c078
commit 0cfaaee5d5
16 changed files with 226 additions and 29 deletions

View File

@ -122,3 +122,20 @@ void Error::message(char *str, int logflag)
if (screen) fprintf(screen,"%s\n",str);
if (logflag && logfile) fprintf(logfile,"%s\n",str);
}
/* ----------------------------------------------------------------------
called by all procs in one world
close all output, screen, and log files in world
------------------------------------------------------------------------- */
void Error::done()
{
MPI_Barrier(world);
if (output) delete output;
if (screen && screen != stdout) fclose(screen);
if (logfile) fclose(logfile);
MPI_Finalize();
exit(1);
}