Dear, I my program, I have created a vector and each processor assigns a value to a part of it:
*do i=MPI%start,MPI%end* * sendbuf(i)=MPI%rank* * enddo* *MPI%start *and* MPI%end* define the starting and ending positions in the vector. Now, I would like that each processor knows all the value in the vector. I think that the best solution could be to use MPI_ALLGATHERV: CALL MPI_ALLGATHERV(sendbuf(MPI%start:MPI%end),MPI%nmc,MPI_INTEGER,MCrank,display,MPI_INTEGER,COMM_CART,MPI%iErr) What could be wrong? Do you have some suggestions for debugging? Have I correctly understood ALLGATHERV? Thanks a lot Diego