[petsc-users] VecScatter

Mohammad Mirzadeh mirzadeh at gmail.com
Wed Aug 3 16:39:16 CDT 2011


Thank you Jed.

On Wed, Aug 3, 2011 at 6:47 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Wed, Aug 3, 2011 at 04:08, Mohammad Mirzadeh <mirzadeh at gmail.com>wrote:
>
>> I have a question regarding the VecScatter routine. If I make a call like:
>>
>> VecScatterCreate(old_vec, PETSC_NULL, new_vec, is_scat, &vec_scat);
>>
>
> This creates map from the entire old_vec to the subset of new_vec indexed
> by the global indices is_scat.
>
>
>> VecScatterBegin(vec_scat, old_vec, new_vec, INSERT_VALUES,
>> SCATTER_FORWARD);
>> VecScatterEnd(vec_scat, old_vec, new_vec, INSERT_VALUES, SCATTER_FORWARD);
>>
>> what is it that will happen? Does this takes the values of old_vec vector
>> and put them into new_vec and takes care of all communications?
>>
>
> Yes, they go into new_vec according to the global indices is_scat.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110803/897baf02/attachment.htm>


More information about the petsc-users mailing list