On Sun, Mar 1, 2009 at 10:07 AM, Yixun Liu <enjoywm at cs.wm.edu> wrote:
> Hi, > Is VecRestoreArray used to let the vector can be freed correctly? This is for safety, so someone does not change values in the middle of a VecDot() for instance. > > If I use VecGetArray to get a pointer and then change some values, are > they changed in the vector? Yes. Matt > > Thanks. > > Yixun > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090301/c140151e/attachment.htm>
