[petsc-users] how to select values from certain positions of a vec from different process to process 0.
丁老师
ztdepyahoo at 163.com
Wed Jul 31 07:55:12 CDT 2013
Does the function VecScatterCreateToZero resolve this problem?
At 2013-07-31 09:08:26,"Barry Smith" <bsmith at mcs.anl.gov> wrote:
>
>
> create an IS with the global indices you want on process 0 and a seq Vec of the same size,
>
> create an IS of size 0 on all the other processes and a seq Vec of the size zero on all other processes
>
> create a VecScatter using these IS, the global Vec and the seq Vec.
>
> use VecScatterBegin/End to send over the values.
>
> Barry
>
>
>On Jul 30, 2013, at 6:37 PM, 丁老师 <ztdepyahoo at 163.com> wrote:
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130731/0ac6b6de/attachment-0001.html>
More information about the petsc-users
mailing list