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