You're right, thanks a lot Edgar!
Quoting Edgar Gabriel (2016-04-07 23:18:46) > I found the bug in your code. The displacement of the file view has to > be given in absolute bytes, not in multiples of etypes. > ---snip--- > The disp displacement argument specifies the position (absolute offset > in bytes from the begin- > ning of the file) where the view begins. > ---snip--- > > If you change your code to > > MPI_File_set_view(f, i0*sizeof(double), MPI_DOUBLE, MPI_DOUBLE, "native", > MPI_INFO_NULL); > > you'll get the correct answer. > > Edgar > > On 4/7/2016 2:25 PM, david.froger...@mailoo.org wrote: > >> What version of Open MPI did you execute your test with? > > mpirun (Open MPI) 1.8.6 >