[petsc-users] [EXTERNAL] Re: Alternate mesh partitioners to METIS/ParMETIS
Matthew Knepley
knepley at gmail.com
Thu May 7 12:46:02 CDT 2020
On Thu, May 7, 2020 at 11:15 AM Lisandro Dalcin <dalcinl at gmail.com> wrote:
> 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?
>
I can just fix it to allow NULL for coordinates.
Matt
> --
> Lisandro Dalcin
> ============
> Research Scientist
> Extreme Computing Research Center (ECRC)
> King Abdullah University of Science and Technology (KAUST)
> http://ecrc.kaust.edu.sa/
>
--
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
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200507/ba702d7c/attachment.html>
More information about the petsc-users
mailing list