[petsc-users] DMNetworkGetEdgeRange() in parallel

Matthew Knepley knepley at gmail.com
Sun Feb 22 12:15:40 CST 2015


On Sun, Feb 22, 2015 at 11:01 AM, Miguel Angel Salazar de Troya <
salazardetroya at gmail.com> wrote:

> Hi
>
> I noticed that the routine DMNetworkGetEdgeRange() returns the local
> indices for the edge range. Is there any way to obtain the global indices?
> So if my network has 10 edges, the processor 1 has the 0-4 edges and the
> processor 2, the 5-9 edges, how can I obtain this information?
>

One of the points of DMPlex is we do not require a global numbering.
Everything is numbered
locally, and the PetscSF maps local numbers to local numbers in order to
determine ownership.

If you want to create a global numbering for some reason, you can using
DMPlexCreatePointNumbering().
There are also cell and vertex versions that we use for output, so you
could do it just for edges as well.

  Thanks,

     Matt


> Thanks
> Miguel
>
> --
> *Miguel Angel Salazar de Troya*
> Graduate Research Assistant
> Department of Mechanical Science and Engineering
> University of Illinois at Urbana-Champaign
> (217) 550-2360
> salaza11 at illinois.edu
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150222/96d5f84f/attachment.html>


More information about the petsc-users mailing list