Changes between Initial Version and Version 1 of Ticket #27


Ignore:
Timestamp:
08/20/09 19:53:44 (17 years ago)
Author:
Stephen Siegel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27 – Description

    initial v1  
    11To do a message-passing data exchange, you need to send first, receive second.  Otherwise deadlock will ensue.   In diffusion example, the receives happen first (check for this in other examples as well):
    22
    3 {{
     3{{{
    44void exchange_ghost_cells() {
    55  if(left >= 0) send(v[1], left, 0);
     
    1010  if(left >= 0) recv(v[0], left, 0);
    1111}
    12 }}
     12}}}
     13I guess in this case it won't deadlock because of the boundaries, but it will force sequentialization.