MPICH is reporting that your call to MPI_Gather is not valid.  Your src_buf and recv_buf are the same buffer, which is not allowed.

Also, what Wesley said.  :)

 ~Jim.


On Mon, Jun 10, 2013 at 9:10 AM, Wesley Bland <wbland@mcs.anl.gov> wrote:
This mailing list isn't the correct place to ask questions about using MPI. This is for asking questions about standardizing MPI. I'd encourage you to repost your question on discuss@mpich.org and you'll get assistance with MPICH there.

Thanks,
Wesley

On Jun 10, 2013, at 9:04 AM, amin izadi <izadi.amin@gmail.com> wrote:

> hi to all
> I want to use mpich for running my SUNTANS code
> when I dont use mpich my example code runs. but when I use mpich
> this error creates.
> what's the problem and how can I fix it?
> thanks in advance
>
> Fatal error in PMPI_Gather: Invalid buffer pointer, error stack:
> PMPI_Gather(856): MPI_Gather(sbuf=0xe176a0, scount=1, MPI_INT, rbuf=0xe176a0, rcount=1, MPI_INT, root=0, comm=0x84000000) failed
> PMPI_Gather(797): Buffers must not be aliased
>
> ===================================================================================
> =   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
> =   EXIT CODE: 1
> =   CLEANING UP REMAINING PROCESSES
> =   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
>
> _______________________________________________
> mpi-comments mailing list
> mpi-comments@lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-comments


_______________________________________________
mpi-comments mailing list
mpi-comments@lists.mpi-forum.org
http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-comments