[petsc-users] [EXTERNAL] Re: Alternate mesh partitioners to METIS/ParMETIS
Lisandro Dalcin
dalcinl at gmail.com
Thu May 7 10:14:45 CDT 2020
On Thu, 7 May 2020 at 17:53, Hammond, Glenn E via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Jed,
>
> We call MatMeshToCellGraph() to generate the dual matrix. This function
> relies upon ParMETIS. Can you point me to a similar function that does not
> require ParMETIS ( e.g. for PTScotch)?
>
>
Maybe a starting point:
DMPlexCreateFromCellList(comm, ..., &dm);
PetscSectionCreate(comm, &cellPartSection);
DMPlexGetPartitioner(dm, &partitioner);
PetscPartitionerSetType(partitioner, PETSCPARTITIONERPTSCOTCH);
PetscPartitionerDMPlexPartition(partitioner, dm, NULL, cellPartSection,
&cellPart);
One minor annoyance is that the first call will need the vertex
coordinates. Matthew, any better way?
--
Lisandro Dalcin
============
Research Scientist
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200507/85998cbc/attachment.html>
More information about the petsc-users
mailing list