git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13931 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user