[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VecAssembly?
On Wed, 1 Mar 2006, Hong Zhang wrote:
>
>
> On Wed, 1 Mar 2006 billy@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