[petsc-users] Set vector elements after VecAssembly?

Jed Brown jedbrown at mcs.anl.gov
Tue Jun 5 06:56:50 CDT 2012


On Tue, Jun 5, 2012 at 1:48 AM, Thomas Witkowski <
thomas.witkowski at tu-dresden.de> wrote:

> Is it possible to update some vector entries after VecAssembly has been
> called?


If you use VecSetValues(), call VecAssemblyBegin/End again when you are
done.

You can also use VecGetArray() (or variants) to manipulate vector entries
without needing to call VecAssemblyBegin/End.


> Is due to some boundary conditions. In principle, I need something that is
> also done in MatZeroRows on the last two vector parameters, but without the
> need to provide some matrix information. Is this possible?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120605/8c44f1fe/attachment.html>


More information about the petsc-users mailing list