[petsc-users] VecScatter Question

Mohammad Mirzadeh mirzadeh at gmail.com
Thu Feb 9 17:10:57 CST 2012


Hi guys,

I'm just wondering if I understand how the VecScatter works. Considering
(petsc 3.2-p6 manual page 53):

VecScatterCreate(Vec x,IS ix,Vec y,IS iy,VecScatter *ctx);
VecScatterBegin(VecScatter ctx,Vec x,Vec y,INSERT VALUES,SCATTER FORWARD);
VecScatterEnd(VecScatter ctx,Vec x,Vec y,INSERT VALUES,SCATTER FORWARD);
VecScatterDestroy(VecScatter *ctx);

is the following statement correct?

VecScatter looks into "ix" and "iy" index sets and `matches' the global
indecies between the two to copy data from vector "x" to vector "y". For
example, if "ix" maps local index "1" to global index "10", VecScatter
looks inside "iy" to find a local index that is mapped to global index "10"
and sends the data accordingly to the correct processor.

Thanks,
Mohammad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120209/62044fe5/attachment.htm>


More information about the petsc-users mailing list