On Mon, Aug 1, 2011 at 9:15 PM, Dominik Szczerba <span dir="ltr"><<a href="mailto:szczerba.dominik@gmail.com">szczerba.dominik@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">>> Is there a some sort of queue/lock<br>
><br>
> No<br>
><br>
>> or will a race condition result?<br>
><br>
> No.<br>
><br>
>> It's not discussed in the documentation.<br>
><br>
> Yes it is :-)<br>
<br>
</div>I did not notice it in the VecSetValue(s) man pages...<br>
<div class="im"><br>
> If ADD_VALUES is used then the location will always get the correct sum.<br>
><br>
> If INSERT_VALUES is used then one of the values set will be used but it is not defined which one.<br>
<br>
</div>Many thanks for the clarifications. Would the same be the case with<br>
MatSetValues and a distributed matrix?<br></blockquote><div><br></div><div>Yes.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Regards,<br>
<font color="#888888">Dominik<br>
</font><div><div></div><div class="h5"><br>
><br>
> Barry<br>
><br>
>><br>
>> Thanks for any clarification,<br>
>> Dominik<br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>