[petsc-users] race conditions in VecSetValue(s)
Matthew Knepley
knepley at gmail.com
Mon Aug 1 16:21:48 CDT 2011
On Mon, Aug 1, 2011 at 9:15 PM, Dominik Szczerba <szczerba.dominik at gmail.com
> wrote:
> >> 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?
>
Yes.
Matt
> Regards,
> Dominik
>
> >
> > Barry
> >
> >>
> >> Thanks for any clarification,
> >> Dominik
> >
> >
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110801/783e0a9e/attachment.htm>
More information about the petsc-users
mailing list