Matthew Knepley knepley at
Sun Mar 1 10:35:59 CST 2009

On Sun, Mar 1, 2009 at 10:07 AM, Yixun Liu <enjoywm at> 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?



> Thanks.
> Yixun
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the petsc-users mailing list