<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Greetings!<br>
<br>
</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I am working with Gmsh meshes that I import to PETSc using DMPlexCreateGmshFromFile(). In Gmsh, users can set Physical groups to flag topology with integer ID's. DMPlexCreateGmsh() will read those physical groups as DMLabels with stratum values matching what
 the user set in Gmsh. When defining physical groups, Gmsh users may include strings so that the .msh file could have a section like:<br>
</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
<div></div>
$PhysicalNames
<div>3</div>
<div>1 8 "string1"</div>
<div>1 9 "string2"</div>
<div>1 10 "string3"</div>
$EndPhysicalNames<br>
</div>
<div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0);">
In lines 1062 to 1086 (which form the function GmshReadPhysicalNames()) of the source code of DMPlexCreateGmsh() [<a href="https://petsc.org/release/src/dm/impls/plex/plexgmsh.c.html#DMPlexCreateGmsh" id="LPlnkOWALinkPreview">https://petsc.org/release/src/dm/impls/plex/plexgmsh.c.html#DMPlexCreateGmsh</a>]
 one can see that the parser does in fact look for those strings and will store them (one at a time) in a variable "name" but does not output it. Within those same lines, the "name" variable is copied to a string array called "regionNames" that is part of C-struct.
 That same C-struct is explicitly available inside of DMPlexCreateGmsh(). <br>
</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0);">
Would it be possible to add an additional output argument to both DMPlexCreateGmsh() and DMPlexCreateGmshFromFile() where users may get a copy of the raw "regionNames"? My only way to access those strings is by using my own knockoff version of GmshReadPhysicalNames().
<br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9wZXRzYy5vcmcvcmVsZWFzZS9zcmMvZG0vaW1wbHMvcGxleC9wbGV4Z21zaC5jLmh0bWwjRE1QbGV4Q3JlYXRlR21zaA.." class="LPBorder402277" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer402277" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td style="width: 100%;">
<div id="LPTitle402277" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: "wf_segoe-ui_light", "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor402277" href="https://petsc.org/release/src/dm/impls/plex/plexgmsh.c.html#DMPlexCreateGmsh" style="text-decoration: none; color: var(--themePrimary);">Mathematics and Computer Science | Argonne National Laboratory</a></div>
<div id="LPDescription402277" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
Actual source code: plexgmsh.c. 1: #define PETSCDM_DLL 2: #include <petsc/private/dmpleximpl.h> 3: #include <petsc/private/hashmapi.h> 5: #include <../src/dm/impls ...</div>
<div id="LPMetadata402277" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
petsc.org</div>
</td>
</tr>
</tbody>
</table>
<div id="LPCloseButtonContainer402277" class="BteeSi3mQkoPXfEW9ZaJ" tabindex="0" title="Remove link preview" role="button">
<i data-icon-name="Cancel" aria-hidden="true" id="LPCloseButton402277" class="w6wS4cX3EBIEHJB2nUAm root-255"></i></div>
</div>
</div>
<br>
<div id="Signature">
<div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif;">
<p style="margin-top:0px; margin-bottom:0px; margin-top:0; margin-bottom:0"></p>
<div>
<p style="margin-top:0px; margin-bottom:0px; margin:0px 0px 10.66px"></p>
<div>
<p style="background: white none repeat scroll 0% 0%; margin: 0px 0px 11px; line-height: normal;">
<span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">Sincerely:</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="margin: 0px; color: red; font-family: "Courier New", monospace; font-size: 14pt;"><b style=""><span style="font-family: "Courier New", monospace;">J.A. Ferrand</span></b></span><u><span style="margin: 0px; color: red; font-family: "Swis721 BlkCn BT", sans-serif; font-size: 12pt;"></span></u></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">Embry-Riddle Aeronautical University - Daytona Beach FL</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">M.Sc.</span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">
 Aerospace Engineering | May 2022</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">B.Sc.</span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">
 Aerospace Engineering</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">B.Sc.</span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">
 Computational Mathematics</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: rgb(0, 0, 0); font-family: "Times New Roman", Times, serif; font-size: 12pt;"> </span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"><span style="color: rgb(0, 0, 0); font-family: "Times New Roman", Times, serif; font-size: 12pt; display: inline !important; font-size-adjust: none; background-color: rgb(255, 255, 255);">Sigma
 Gamma Tau</span><span style="color: rgb(0, 0, 0); font-family: "Times New Roman", Times, serif; font-size: 12pt; display: inline !important; font-size-adjust: none; background-color: rgb(255, 255, 255);"> </span><br>
</span></p>
<span style="font-family: "Times New Roman", Times, serif;"></span>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="margin: 0px; color: rgb(0, 0, 0); font-family: "Times New Roman", Times, serif; font-size: 12pt;">Tau Beta Pi</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;"> </span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><u><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">Phone:</span></u><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">
 (386)-843-1829</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal;">
<span style="font-family: "Times New Roman", Times, serif;"></span><u><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">Email(s):</span></u><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">
 ferranj2@my.erau.edu</span></p>
<p style="background: white none repeat scroll 0% 0%; margin: 0px; line-height: normal; text-indent: 0.5in;">
<span style="font-family: "Times New Roman", Times, serif;"></span><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"><span style="margin: 0px; font-family: "Times New Roman", Times, serif;">   
</span></span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;">jesus.ferrand@gmail.com</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>