LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2007-09-27 00:01:48


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