about MatSetValue() and VecSetValue()

Barry Smith bsmith at mcs.anl.gov
Fri Dec 19 17:32:48 CST 2008


    If INSERT_VALUE is being used then ONE of the values you put in  
ends up being the value; which one is
not under your control. If ADD_VALUES is used then the sum of all the  
values is used.


On Dec 19, 2008, at 5:28 PM, Yujie wrote:

> Hi, PETSc developer
>
> I am wondering if several cpus simultaneously insert the values in  
> the same position using MatSetValue() or VecSetValue(), how do the  
> functions deal with it? thanks a lot.
>
> Regards,
>
> Yujie
>




More information about the petsc-users mailing list