X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fe6738f7ffa0f9e0dc3d47f929650430bcede40e..95042ad33fe63e1a066916ea1da062752fc67253:/src/smpi/bindings/smpi_pmpi_file.cpp diff --git a/src/smpi/bindings/smpi_pmpi_file.cpp b/src/smpi/bindings/smpi_pmpi_file.cpp index 2fa04be9eb..1981ca571e 100644 --- a/src/smpi/bindings/smpi_pmpi_file.cpp +++ b/src/smpi/bindings/smpi_pmpi_file.cpp @@ -65,7 +65,7 @@ int PMPI_File_close(MPI_File *fh){ int PMPI_File_seek(MPI_File fh, MPI_Offset offset, int whence){ CHECK_FILE(1, fh) const SmpiBenchGuard suspend_bench; - int ret = fh->seek(offset,whence); + int ret = fh->seek(offset*fh->etype()->get_extent(),whence); return ret; } @@ -73,7 +73,7 @@ int PMPI_File_seek_shared(MPI_File fh, MPI_Offset offset, int whence){ CHECK_FILE(1, fh) CHECK_COLLECTIVE(fh->comm(), __func__) const SmpiBenchGuard suspend_bench; - int ret = fh->seek_shared(offset,whence); + int ret = fh->seek_shared(offset*fh->etype()->get_extent(),whence); return ret; }