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

This commit is contained in:
sjplimp
2015-08-21 22:55:12 +00:00
parent 63534501c2
commit 3841dd58ca
35 changed files with 140 additions and 81 deletions

View File

@ -380,7 +380,7 @@ void Dump::write()
write_data(nlines,buf);
}
if (flush_flag) fflush(fp);
if (flush_flag && fp) fflush(fp);
} else {
MPI_Recv(&tmp,0,MPI_INT,fileproc,0,world,MPI_STATUS_IGNORE);
@ -401,7 +401,7 @@ void Dump::write()
write_data(nchars,(double *) sbuf);
}
if (flush_flag) fflush(fp);
if (flush_flag && fp) fflush(fp);
} else {
MPI_Recv(&tmp,0,MPI_INT,fileproc,0,world,MPI_STATUS_IGNORE);
@ -413,9 +413,9 @@ void Dump::write()
if (multifile) {
if (compressed) {
if (filewriter) pclose(fp);
if (filewriter && fp) pclose(fp);
} else {
if (filewriter) fclose(fp);
if (filewriter && fp) fclose(fp);
}
}
}