LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Rohit Prakash (rohitprakash_at_[hidden])
Date: 2007-09-28 04:05:51


Hi Brian,

Thank you for the info. It really helped.

cheers,
Rohit

On 27/09/2007, Brian Barrett <brbarret_at_[hidden]> wrote:
>
> On Sep 26, 2007, at 5:15 AM, Rohit Prakash wrote:
>
> > MPI_Send(input_to_p0,SIZE,MPI_2COMPLEX,
> > 1,tag0,MPI_COMM_WORLD);
> >
>
> MPI_2COMPLEX is a special datatype used for MAXLOC and MINLOC
> reductions with Fortran. There is no predefined C datatype to
> describe a complex (since C doesn't have a native complex datatype).
>
> The easiest way to handle this would be to use MPI_TYPE_VECTOR to
> create a datatype that consists of two consecutive MPI_FLOAT datatypes.
>
> Hope this helps,
>
> Brian
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>