[petsc-users] One sequencial vector seen from other process

Matthew Knepley knepley at gmail.com
Sat Dec 10 16:58:51 CST 2016


On Sat, Dec 10, 2016 at 4:52 PM, Guido Giuntoli <giuntoli1991 at gmail.com>
wrote:

> Hi,
>
> I am solving a problem that needs that process 0 (for example) modifies a
> small vector (let say 1000 components). Then all the process should be able
> to get all the component of this vector. Which is the best way to do it ?
>

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

  Thanks,

     Matt


> I don't want a distributed vector because only one process will be the
> responsible of computing the components !
>
> Thanks, Guido.
>



-- 
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/20161210/fd5389f2/attachment.html>


More information about the petsc-users mailing list