[petsc-dev] getting processor for off proc value

Barry Smith bsmith at mcs.anl.gov
Fri Jul 8 16:40:02 CDT 2011


     Are we planning on making the VecScatter the communications central for PETSc? 

     I can add a VecScatterGetFromRank()  (ugly name) that returns the rank for each received entry; there might be enough information to do this without any additional communication.  There could also be a VecScatterGetToRank() (ugly name) indicating the process to whom we are sending data. Etc etc.


On Jul 8, 2011, at 2:48 PM, Jed Brown wrote:

> The easiest way is to write it into a vector and scatter. It is also possible to use the local to global mapping /  binary search.
> On Jul 8, 2011 1:45 PM, "Mark F. Adams" <mark.adams at columbia.edu> wrote:
> > Jed or Barry, 
> > 
> > I need to get the proc ID for ghost values. What is a good way to get that? 
> > 
> > Mark

More information about the petsc-dev mailing list