Newsgroups: comp.parallel.pvm
From: Tom Goodale <g00dale@aei-potsdam.mpg.de>
Subject: Re: Function Sending in Pvm
Organization: Max-Plank-Institut Fur Gravitationsphysik
Date: Fri, 10 Apr 1998 10:14:03 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <352DD4CB.41C6@aei-potsdam.mpg.de>

Raymond Fares Jr wrote:
> 
> I am trying to code my project on heat boundrary problems in pvm. In pvm
> I can pack and send a single dimension array. However this becomes
> cumbersome when dealing with more than one dimensions. Is there anyway
> that I can pass a 2x2 array in PVM? If so, how? Also can pvm pass
> structs or classes without taking it apart?
> 
> Thanks,
> Ray

This may not be what you're looking for, but you can always represent
an n dimensional array as a (long) 1-d array.  E.g. your 2x2 array could
be implemented as a 1x4 array, which would then be easy to pass.  If you
are writing in f77 then your array will already be stored in this way;
if in C it will also be (I'm fairly certain), unless you've dynamically
allocated the space.

I hope this helps,

Tom

