<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 08/06/2018 20:43, Matthew Knepley
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMYG4G=eFBnuZkiurzJ_fm6_F7JMqv+g4Xh4=Bh4su=zi30SMA@mail.gmail.com">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">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>
</div>
</blockquote>
<br>
It looks like it is exactly what I was looking for. I'll give it a
go.<br>
<br>
Thanks!<br>
<br>
Matteo<br>
</body>
</html>