[petsc-users] race conditions in VecSetValue(s)
Dominik Szczerba
szczerba.dominik at gmail.com
Mon Aug 1 16:15:13 CDT 2011
>> Is there a some sort of queue/lock
>
> No
>
>> or will a race condition result?
>
> No.
>
>> It's not discussed in the documentation.
>
> Yes it is :-)
I did not notice it in the VecSetValue(s) man pages...
> If ADD_VALUES is used then the location will always get the correct sum.
>
> If INSERT_VALUES is used then one of the values set will be used but it is not defined which one.
Many thanks for the clarifications. Would the same be the case with
MatSetValues and a distributed matrix?
Regards,
Dominik
>
> Barry
>
>>
>> Thanks for any clarification,
>> Dominik
>
>
More information about the petsc-users
mailing list