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/c9dedbb6/attachment.htm>
