Subject: MPI_address in C code

From: [email-masked] (David Walker)
Date: Wed, 15 Sep 1993 14:59:25 -0400

In a C program is there ever any need to call MPI_address to
find the address of something? Surely one can always get the address
of a variable in a C code. In the fourth example in the point-to-point
chapter couldn't one say:

	sindex[0] = particle;
        sindex[1] = &(particle[0].d);
        sindex[2] = &(particle[0].b);

instead of

        MPI_address( (void *)particle, sindex);
        MPI_address( (void *)particle[0].d, sindex+1);
        MPI_address( (void *)particle[0].b, sindex+2);

David