<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 May 2020 at 17:53, Hammond, Glenn E via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Jed,<br>
<br>
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)?<br>
<br></blockquote><div><br></div><div>Maybe a starting point:</div><div><br></div><div>DMPlexCreateFromCellList(comm, ..., &dm);<br>PetscSectionCreate(comm, &cellPartSection);<br>DMPlexGetPartitioner(dm, &partitioner);<br>PetscPartitionerSetType(partitioner, PETSCPARTITIONERPTSCOTCH);<br>PetscPartitionerDMPlexPartition(partitioner, dm, NULL, cellPartSection, &cellPart);<br></div><div><br></div><div>One minor annoyance is that the first call will need the vertex coordinates. Matthew, any better way?</div></div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Lisandro Dalcin<br>============<br>Research Scientist<br>Extreme Computing Research Center (ECRC)<br>King Abdullah University of Science and Technology (KAUST)<br><a href="http://ecrc.kaust.edu.sa/" target="_blank">http://ecrc.kaust.edu.sa/</a><br></div></div></div></div>