<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 8, 2018 at 5:10 AM, Matteo Semplice <span dir="ltr"><<a href="mailto:matteo.semplice@unito.it" target="_blank">matteo.semplice@unito.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi.<br>
<br>
We are developing a ghost-fluid type scheme, so we start creating a (cartesian) grid and then "mark" some cells in which the evolution actually takes place and solve a PDE only there.<br>
<br>
We currently handle the grid via a DMPLEX, we through a Label that marks the fluid cells we define a trivial operator for the non-fluid part of the grid, but of course the dofs attached to those cells and faces are still there in the Vec's and in the output.<br>
<br>
We know that (sometimes large) portions of the original grid will never be touched during the evolution, so we would like to remove those from the DMPLEX before partitioning it. Is there a simple way to do it? Ideally automagically via a Label or an IndexSet...<br></blockquote><div><br></div><div>Can this do what you want?</div><div><br></div><div> <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexFilter.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMPLEX/DMPlexFilter.html</a></div><div><br></div><div>If so, I would caution you that no one uses this right now, so it might forget to do something (say edit out all those</div><div>things from existing labels). I will fix anything that gives you a problem.</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">
The second best option would be to give less weight to the non-fluid portion of the DM when partitioning the DMPLEX: is there an example showing the use of weights in a Plex partitioner?<br>
<br>
Thanks in advance for your time.<br>
<br>
Best,<br>
<br>
Matteo<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>