Newsgroups: comp.parallel.mpi
From: Brandon Mitchell <bmitch@atdot.nospam.and.i.mean.it.org>
Subject: Re: send/recv
In-Reply-To: <7c4b4e$ag0$1@nnrp1.dejanews.com>
Message-Id: <Pine.LNX.3.96.990311215430.1807B-100000@wm7-214.resnet.wm.edu>
References: <7c4b4e$ag0$1@nnrp1.dejanews.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Date: Fri, 12 Mar 1999 02:59:12 GMT
Xref: ukc comp.parallel.mpi:4734


[ ditch the "nospam.and.i.mean.it" to reply personally ]

On Tue, 9 Mar 1999 srrmt@my-dejanews.com wrote:

> Hello, I am new to mpi. My question is whether I can pass a C structure
> in MPI_Send. If yes, what should be its parameters. Specifically, what
> should be the datatype parameter in the send statement.  Thanks in
> advance.  Sri. 

I tend to use Pack and Unpack when I'm not in a homogenious environment or
when the data contains pointers.  It's pretty much designed for that
problem and you don't have to create a new data type.  The code isn't the
prettiest, but it works without much trouble.

Brandon

