dear George, dear all, thanks for the suggestions, it works now. I have just put: IDNodeStartGLOBAL = IDNodeStartGLOBAL -1
but I do not understand why. Can you explain it to me? Thanks Diego On 14 October 2015 at 16:02, Georg Geiser <georg.gei...@dlr.de> wrote: > Diego, > > try to decrease your displacements by one. > > Best > > Georg > > > Am 14.10.2015 um 15:51 schrieb Diego Avesani: > > dear all, > I have some problem with MPI_GATHERV. > > In my code I generate a complex number > > DO ij=iNS,iNE > X11(ij) = cmplx(1.,0.) > ENDDO > > where iNS,INE change according to the CPU rank, in may case > > cpu 0 1 10050 > cpu 1 10051 20100 > cpu 2 20101 30150 > cpu 3 30151 40401 > > according to that I have > nNodeGLOBAL = 10050 10050 10050 10251 > IDNodeStartGLOBAL = 1 10051 20101 30151 > > After that I apply a MPI_GATHERV as > > CALL MPI_GATHERV(X11(*iNS:iNE*),MPIdata%nNodes, mpi_double_cpmplex, *PHIH*, > nNodeGLOBAL,IDNodeStartGLOBAL, mpi_double_cpmplex, 0, MPI_COMM_WORLD, Err) > > but when I plot REAL(PHIH(1)), I get > > 0 > > I use fortran, do you think that there is an error in nNodeGLOBAL? do I > have to allocate the vector nNodeGLOBAL and IDNodeStartGLOBAL satrting from > 0 according to the name of the rank? > > really really > thanks a lot > > > > > > > > Diego > > > > _______________________________________________ > users mailing listus...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/10/27862.php > > > > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/10/27863.php >