[petsc-users] VecGet{Restore}SubVector behavior

Matthew Knepley knepley at gmail.com
Thu Dec 31 07:56:26 CST 2015

On Thu, Dec 31, 2015 at 12:02 AM, Bhalla, Amneet Pal S <amneetb at live.unc.edu
> wrote:

> Hi Folks,
> Following upon this thread
> http://lists.mcs.anl.gov/pipermail/petsc-users/2013-October/018989.html
> is the behavior of VecRestoreSubVector() changed for non-contiguous
> enteries of original Vec to what is posted here? For example, if I
> extract a noncontiguous sub vector b from a Vec A, modify enteries of b,
> and restore b, would I see corresponding changes in
> A?

No. Now we automatically create a VecScatter for non-contiguous access.



> Thanks,
> — Amneet
> =====================================================
> Amneet Bhalla
> Postdoctoral Research Associate
> Department of Mathematics and McAllister Heart Institute
> University of North Carolina at Chapel Hill
> Email: amneet at unc.edu
> Web:  https://abhalla.web.unc.edu
> =====================================================

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/20151231/d26558b6/attachment-0001.html>

More information about the petsc-users mailing list