<div dir="ltr"><div dir="ltr">On Fri, Mar 14, 2025 at 12:15 PM Preda Silvia via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-6102346484075052337">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-6102346484075052337WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">We are having a hard time understanding how the degrees of freedom are projected after a dmforest adaption. Having used before the P4EST library directly, we recall that there, a index mapping from quadrants
present in the grid before and after adaption (1 to 1, 1 to many, many to 1, for unaltered, refined, coarsened quadrants, respectively) was available. Would it be possible to access the same information for a dmforest?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Thank you for all the suggestion!</span></p></div></div></div></blockquote><div><br></div><div>I do not understand exactly what you want yet. </div><div><br></div><div>A projection of the dofs would necessarily depend on the function space you are using to represent the field.</div><div><br></div><div>So you might instead be asking, can I get the refinement pattern like the parent of a given cell. You can get this</div><div><br></div><div> <a href="https://urldefense.us/v3/__https://petsc.org/main/manualpages/DMPlex/DMPlexGetTreeParent/__;!!G_uCfscf7eWS!aAk0LSbDAPHyCjCzQ3Fa3FjQxqV-5Cx8PkJvYW2BWAfdWeBJcXe9U9MriWyHncDo0mnS_NKfIJJCq7vFlz-x$">https://petsc.org/main/manualpages/DMPlex/DMPlexGetTreeParent/</a></div><div><br></div><div>There are few users (except us), so we would be happy to listen to interface suggestions. I will also note that Toby is</div><div>the expert, and I am an amateur.</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 class="msg-6102346484075052337"><div lang="EN-US" style="overflow-wrap: break-word;"><div class="m_-6102346484075052337WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Silvia</span><u></u><u></u></p>
</div>
</div>
</div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><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="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!aAk0LSbDAPHyCjCzQ3Fa3FjQxqV-5Cx8PkJvYW2BWAfdWeBJcXe9U9MriWyHncDo0mnS_NKfIJJCq5ohAd9A$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>