<div dir="ltr"><div dir="ltr">On Wed, Sep 25, 2019 at 5:56 PM Asitav Mishra via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have a native distributed mesh graph across multiple processors, using which I would want to create DMPlex mesh using DMPlexCreateFromDAG. I see in Petsc plex/examples that DMPlexCreateFromDAG creates DM only from master processor and then the DM is distributed across multiple (one-to-many) processors. My question is: is it possible to create DAG locally in each processor and then build the global DM? If yes, are there any such examples?</div></div></blockquote><div><br></div><div>1) If you do not mind us redistributing the mesh on input, then you can probably do what you want using</div><div><br></div><div> <a href="https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexCreateFromCellListParallel.html">https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexCreateFromCellListParallel.html</a></div><div><br></div><div>Note that the input to this function wants a unique set of vertices from each process, so each vertex must come from only one processes.</div><div><br></div><div> 2) If that does not work, you can certainly call CreateFromDAG() on multiple processes. However, then you must manually create the PetscSF</div><div> which describes how the mesh is connected in parallel. If this is what you need to do, I can give you instructions but at that point we should</div><div> probably make an example that does it.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Best,</div><div>Asitav</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>