Newsgroups: comp.parallel.mpi
From: David Espadas Valladares <despadas@ultra1.dia.ucm.es>
Subject: Re: MPI-code correct?
Organization: Universidad Complutense de Madrid
Date: Fri, 05 Dec 1997 15:26:29 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <34880F15.D309AB68@ultra1.dia.ucm.es>

Mark Fallon wrote:
> 
> The count on the MPI_Recv in incorrect, it should be 1.
> You have described a new type that is made up of two
> integers, so you only need a count of 1 to receive them.
> 
> Regards,
> 
> Mark.
> --
> ___________________________________________________________________
> Mark Fallon                             Tel   : +353-1-6798911
> Researcher                              Fax   : +353-1-6798926
> Hitachi Dublin Laboratory               Email : mark.fallon@hdl.ie
> ___________________________________________________________________


Hi Mark:

I'm not sure of that because, although he is receiving 2 "my_type"
objects, he is doing it on the "data" array. So, in my opinion, the 2nd.
"my_type" object would be simply not used, and on the "data" array the
values should be the ones Holger expects to be. I can't explain why he
obtains "0" on data[3]. Maybe it's related to your observation, but I
think it shouldn't be so (as Holger explains with the standard at hand).

I'm not sure I'm being helpful, but this is an interesting question and
I'd like someone to explain it.

Regards,

David.

___________________________________________________________________________

David Espadas Valladares 
Dpto. de Arquitectura de Computadores y Automatica
Universidad Complutense de Madrid
Madrid
SPAIN					E-mail: (despadas@ultra1.dia.ucm.es)

