Newsgroups: comp.os.parix
From: Kenji Takeda <ktakeda@soton.ac.uk>
Subject: Sending C Strcutures in Parix
Organization: Dept of Aeronautics & Astronautics, University of Southampton, UK
Date: 26 Jun 1996 10:48:30 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <4qr4hu$n4s@hickory.soton.ac.uk>

I am parallelising a discrete vortex method Navier Stokes solver which has a
fast multipole method in it. I need to send a user-defined C structure across
processors, and am not sure whether Parix will allow me to do it. (Actually 
I'm pretty sure it won't!). I know that in MPI you can pre-define new
MPI-datatypes. Is there a similar function in Parix.

The structure I nesed to send is:

typedef struct
  {
    int level;
    int size;
    int start;
    int offset;
    double radius;
    double re_zbar, im_zbar;
    double coeff[coeff_bit];   -> where coeff-bit is about 100
  } zone_type

My code actually uses an array of these structures with up to 5000 members, 
so I need to keep my message passing of this structure as efficient as 
possible (don't we all).

Thanks very much for our help.

-- 
Kenji Takeda 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 e-mail: ktakeda@soton.ac.uk                 
 WWW:    http://www.soton.ac.uk/~ktakeda     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Aerodynamics Research Group                 
 Department of Aeronautics and Astronautics  
 University of Southampton                   
 Soton SO17 1BJ, England  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


