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

This commit is contained in:
sjplimp
2014-01-29 18:40:05 +00:00
parent f2a83a1041
commit fffe7f95b7
56 changed files with 800 additions and 492 deletions

View File

@ -103,11 +103,8 @@ void DumpCustomMPIIO::openfile()
if (append_flag) { // append open
int err = MPI_File_open( world, filecurrent, MPI_MODE_CREATE | MPI_MODE_APPEND | MPI_MODE_WRONLY , MPI_INFO_NULL, &mpifh);
if (err != MPI_SUCCESS) {
char str[128];
sprintf(str,"Cannot open dump file %s",filecurrent);
error->one(FLERR,str);
}
if (err != MPI_SUCCESS)
error->one(FLERR,"Cannot open dump file");
int myrank;
MPI_Comm_rank(world,&myrank);
if (myrank == 0)
@ -120,11 +117,8 @@ void DumpCustomMPIIO::openfile()
else { // replace open
int err = MPI_File_open( world, filecurrent, MPI_MODE_CREATE | MPI_MODE_APPEND | MPI_MODE_WRONLY , MPI_INFO_NULL, &mpifh);
if (err != MPI_SUCCESS) {
char str[128];
sprintf(str,"Cannot open dump file %s",filecurrent);
error->one(FLERR,str);
}
if (err != MPI_SUCCESS)
error->one(FLERR,"Cannot open dump file");
mpifo = 0;
MPI_File_set_size(mpifh,(MPI_Offset) (headerSize+sumFileSize));