[petsc-users] VecGetValues get vector values at arbitrary locations

Jed Brown jedbrown at mcs.anl.gov
Fri Aug 17 13:28:41 CDT 2012


On Fri, Aug 17, 2012 at 12:13 PM, Panruo Wu <pwu at mymail.mines.edu> wrote:

> Dear PetSc developers and users,
>
> I want to access a Petsc Vec v at index n whose value
> is not necessarily stored in the same processor.
> I noted that the current VecGetValues cannot do that.  Do you have
> any suggestions on how I can access v(n) from arbitrary
> processors(in the same communicator of course)?
>

http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecScatterCreate.html

See also the user's manual chapter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120817/2e43e461/attachment.html>


More information about the petsc-users mailing list