title: What happens when I MPI_Send to a process that has finished?
body: <p>What happens when I MPI_Send to a process that has finished?</p>
  
  <p>I am learning MPI, and writing a small sugar distribution-simulation in C. When the factories stop producing, those processes end. When warehouses run empty, they end. Can I somehow tell if the shop's order to a warehouse did not succeed(because the warehouse process has ended) by looking at the return value of MPI_Send? The documentation doesn't mention a specific error code for this situation, but that no error is returned for success.</p>
  
  <p>Can I do:</p>
  
  <pre><code>if (MPI_Send(...)) {
      ...
      /* destination has ended */
      ...
  }
  </code></pre>
  
  <p>And disregard the error code?</p>
  
  <p>Thanks</p>