[petsc-users] question about DMDA vector

Jed Brown jedbrown at mcs.anl.gov
Sat Dec 3 17:09:50 CST 2011


On Sat, Dec 3, 2011 at 17:07, Hailong Xiao <xiaohl1986 at gmail.com> wrote:

> So, I do not need to call the VecAssemblyBegin; and VecAssemblyEnd;
> routines in order to set the values of f?


Only in order set values that you do not own.

Alternatively, you can set values in a local vector and
DMDALocalToGlobalBegin/End.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111203/bec4ed4f/attachment.htm>


More information about the petsc-users mailing list