VecAssembly?

Satish Balay balay at mcs.anl.gov
Wed Mar 1 11:19:46 CST 2006


On Wed, 1 Mar 2006, Hong Zhang wrote:

> 
> 
> On Wed, 1 Mar 2006 billy at dem.uminho.pt wrote:
> 
> >
> > After setting values to a sequential vector, do I need to call
> > VecAssmblyBegin(), VecAssemblyEnd()?
> 
> Yes. Hong

If you use VecSetValues() then yes VecAssmblyBegin()/End() need to be
called. If you use VecGetArray() and change local values - you just
need to call VecRestoreArray() [i.e VecAssemblyBegin/End() calls are
not necessary]

Satish




More information about the petsc-users mailing list