<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear List,</p>
<p><br>
</p>
<p>I have a problem that can be summarized by saying that just before it exits a main loop, rank 1 does a send to rank 0 (actually an fi_inject), and then never needs to check for messages again. Rank 1 is finished (but it doesn't shut down yet as there are
 other thigs to do that don't require messaging). Rank 0 never receives the message that rank 1 send. If I add an extra short loop for a fraction of a second and tell rank 1 to poll completions after the fi_inject, then rank 0 does get the message.</p>
<p><br>
</p>
<p>Since fi_inject returns 0 indicating success - I assumed all was ok. If I knew always which send was going to be the last, then I could add a short poll in the right place - unfortunately I don't always know what the last send/inject will be.
<br>
</p>
<p><br>
</p>
<p>Is there a right way to handle this (I guess I need a flush operation of some kind, but I'm not sure where to put it).</p>
<p><br>
</p>
<p>Thanks</p>
<p><br>
</p>
<p>JB</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>