<div dir="ltr"><div dir="ltr"><br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 10, 2022 at 8:17 AM Medane TCHAKOROM <<a href="mailto:medane.tchakorom@univ-fcomte.fr">medane.tchakorom@univ-fcomte.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hello ,</p>
<p>Sorry if this question does not belong to this mailling list,
i'am using Petsc , but with some</p>
<p>MPI parts code, when dealing with communication.<br>
</p>
<div>
<div style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;width:659px">
<p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">If
a make two consecutive MPI_Isend requests, and if the
destination processor has not yet receive the message
inbetween the two calls, will the buffer be updated ? I mean
if I send message "1" for the first request, then send "0" as
the second message. Will the receiver receive "0" as message ?
I not, how can I do to update the message ?</p></div></div></div></blockquote><div>If you mean send buffer, you need MPI_Wait() to reuse the send buffer, i.e,</div><div><br></div>MPI_Isend(sbuf, .., &req);<br>MPI_Wait(&req,MPI_STATUS_IGNORE);<br>refill sbuf<br>MPI_Isend(sbuf, .., &req);<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;width:659px">
<p style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both">Thanks</p>
</div>
</div>
</div>
</blockquote></div></div>