X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/80cf8a4d4a66ec909f585c1d1fe6b5c991d0a1ac..9bf0062a4b17bca6198012d9b303548baa8365c0:/src/smpi/mpi/smpi_file.cpp diff --git a/src/smpi/mpi/smpi_file.cpp b/src/smpi/mpi/smpi_file.cpp index c743cf9b89..966a5fc30d 100644 --- a/src/smpi/mpi/smpi_file.cpp +++ b/src/smpi/mpi/smpi_file.cpp @@ -143,7 +143,8 @@ namespace smpi{ fh->file_->seek(position+movesize, SEEK_SET); } XBT_VERB("Position after read in MPI_File %s : %llu",fh->file_->get_path(), fh->file_->tell()); - status->count=count*datatype->size(); + if(status != MPI_STATUS_IGNORE) + status->count=count*datatype->size(); return MPI_SUCCESS; } @@ -202,7 +203,8 @@ namespace smpi{ fh->file_->seek(position+movesize, SEEK_SET); } XBT_VERB("Position after write in MPI_File %s : %llu",fh->file_->get_path(), fh->file_->tell()); - status->count=count*datatype->size(); + if(status != MPI_STATUS_IGNORE) + status->count=count*datatype->size(); return MPI_SUCCESS; }