Newsgroups: comp.parallel.mpi
From: Martin Schuster <schuster@lhm.mw.tu-muenchen.de>
Subject: blocking nonblocking
Organization: Lehrstuhl fuer Hydraulische Maschinen und Anlagen
Date: Wed, 10 Jun 1998 06:24:24 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <357E1888.41C6@lhm.mw.tu-muenchen.de>

Hello there,

just recently switched from PVM to MPI getting a little bit confused...

Here's my problem:

For the exchange of boudary conditions performing parallel CFD
computations, n processes should communicate without data loss
or gridlocking in the follwing way


            
1     Perform computation

       send computed bounaries to m desiganted processes

      do 

        check, if there's a message 

        if yes receive it and update boundary

        if no continue loop

      until m boundaries are exchanged

      goto 1

            <-> oooo <->            
  i/O       <-> o  o <->                   
            <-> oooo <->            

Sounds like non blocking communication, ha? Did work quite properly
using PVM. Unfortunalty I don't get it implementing MPI. 
Any hints on this toppic, like demo programms or literature sources ?

Thanx

Martin

-- 
-----------------------------------------------------------------------
Martin F. Schuster, Dipl.-Ing.              
                                         
Technische Universitaet Muenchen
Lehrstuhl fuer Hydraulische Maschinen und Anlagen                      
                                             
phone: (49) 089 289 16306                     
fax:   (49) 089 289 16297                     
email: schuster@lhm.mw.tu-muenchen.de          
www:   http://www.lhm.mw.tu-muenchen.de/~martin  
-------------------------------------------- "earth is a beta site" ---

