<div style="font-family: Arial, sans-serif; font-size: 14px;">Great.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Thank you very much for the quick replies.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Noam</div><div class="protonmail_quote">
On Thursday, January 11th, 2024 at 9:34 PM, Matthew Knepley <knepley@gmail.com> wrote:<br><br>
<blockquote class="protonmail_quote" type="cite">
<div dir="ltr"><div dir="ltr">On Thu, Jan 11, 2024 at 12:53 PM Noam T. <<a href="mailto:dontbugthedevs@proton.me" rel="noreferrer nofollow noopener" target="_blank">dontbugthedevs@proton.me</a>> wrote:<br></div><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div style="font-family:Arial,sans-serif;font-size:14px">There could be some overlapping/redundancy between the default and the user-defined groups, so perhaps that was the intended behavior. Glad to hear it's possible to have access to everything.</div></blockquote><div><br></div><div>Here is the MR: <a href="https://gitlab.com/petsc/petsc/-/merge_requests/7178" rel="noreferrer nofollow noopener" target="_blank">https://gitlab.com/petsc/petsc/-/merge_requests/7178</a></div><div><br></div><div>If you build that branch, you can use -dm_plex_gmsh_use_generic to turn on those labels.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div style="font-family:Arial,sans-serif;font-size:14px">Thanks,</div><div style="font-family:Arial,sans-serif;font-size:14px">Noam<br></div><div>
On Thursday, January 11th, 2024 at 6:31 PM, Matthew Knepley <<a target="_blank" href="mailto:knepley@gmail.com" rel="noreferrer nofollow noopener">knepley@gmail.com</a>> wrote:<br><br>
<blockquote type="cite">
<div dir="ltr"><div dir="ltr">On Thu, Jan 11, 2024 at 11:59 AM Noam T. <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:dontbugthedevs@proton.me">dontbugthedevs@proton.me</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 style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Without using the flag -dm_plex_gmsh_use_regions, the <span>DMGetNumLabels</span> says there are 5, named celltype, depth, cell/face/vertex sets.</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">With the flag, the labels are celltype, depth, my_vol, my_surface (using the same example as before). <br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Am I misusing the flag somehow, and I should be able to access those of cell/face/vertex as well?</div></blockquote><div><br></div><div>Shoot, yes this changed after another request. Yes, we can put in a flag for that. Should not take long.</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 style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">PS: Using PETSc 3.20.3</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Thanks, </div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">Noam<br></div><div>
On Thursday, January 11th, 2024 at 5:28 PM, Matthew Knepley <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br><br>
<blockquote type="cite">
<div dir="ltr"><div dir="ltr">On Thu, Jan 11, 2024 at 11:18 AM Noam T. via petsc-users <<a target="_blank" href="mailto:petsc-users@mcs.anl.gov" rel="noreferrer nofollow noopener">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><span style="font-family:"Times New Roman",serif">Would it be feasible to have an option (e.g. new flag along the lines of -dm_plex_gmsh_...) that allows the user to access both the default sets (Cell / Face / Vertex) together with user-defined gorups (those under $PhysicalNames, available when using -dm_plex_gmsh_use_regions)?</span></div></blockquote><div><br></div><div>I am not sure I understand the question. When you turn on regions, it makes extra labels, but the generic labels still exist.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">That is, with a *.msh file containing<br></span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">$PhysicalNames</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">2</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">2 100 "my_surface"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">3 200 "my_vol"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">the return of DMGetLabelName(dm, n, name) would be (order may differ)</span><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">n = 0, name = "celltype"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">n = 1, name = "depth"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">n = 2, name = "Cell Sets"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">n = 3, name = "my_vol"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">n = 4, name = "Face Sets"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">n = 5, name = "my_surface"</span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">...</span><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">I poked into src/dm/impls/plex/plexgmsh.c and have managed to print all the labels after changing a couple of variable values, so perhaps it is doable. </span></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">The changes made are not a solution, simply naively set some variables to skip checking for the use_regions flag, so it understandably crashes soon after.</span><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span style="font-family:"Times New Roman",serif">Thanks, Noam</span><br></div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div class="gmail_signature" dir="ltr"><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 target="_blank" href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer nofollow noopener">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote><br>
</div></blockquote></div><br clear="all"><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 target="_blank" rel="noreferrer nofollow noopener" href="http://www.cse.buffalo.edu/~knepley/">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote><br>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div class="gmail_signature" dir="ltr"><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 target="_blank" href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer nofollow noopener">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote><br>
</div>