Dear Wu, This might help:
http://www.mcs.anl.gov/petsc/documentation/faq.html#mpi-vec-to-seq-vec How do I collect all the values from a parallel PETSc vector into a sequential vector on each processor? How do I collect all the values from a parallel PETSc vector into a vector on the zeroth processor? Regards, Zhengyong On Fri, Aug 17, 2012 at 7: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)? > > Thanks, > > best wishes, > Panruo Wu > -- Zhengyong Ren AUG Group, Institute of Geophysics Department of Geosciences, ETH Zurich NO H 47 Sonneggstrasse 5 CH-8092, Z?rich, Switzerland Tel: +41 44 633 37561 e-mail: zhengyong.ren at aug.ig.erdw.ethz.ch Gmail: renzhengyong at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120817/9e3ea79c/attachment.html>
