<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">Dear PETSc team:</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted2">I would like to use DMPlex to partition a mesh stored as a CGNS file.
I configured my installation with --download_cgns = 1, got me a .cgns file and called DMPlexCreateCGNSFromFile() on it. Doing so got me this error:<br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted1 ContentPasted3">[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: Error in external library</div>
<div class="FluidPluginCopy ContentPasted3"><b>[0]PETSC ERROR: CGNS file must have a single section, not 4</b></div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: Petsc Release Version 3.18.3, unknown
</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: ./program.exe on a arch-linux-c-debug named F86 by jesus Mon Jan 16 17:25:11 2023</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: Configure options --download-mpich=yes --download-hdf5=yes --download-cgns=yes --download-metis=yes --download-parmetis=yes --download-ptscotch=yes --download-chaco=yes --with-32bits-pci-domain=1</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: #1 DMPlexCreateCGNS_Internal() at /home/jesus/Desktop/JAF_NML/3rd_Party/PETSc/petsc/src/dm/impls/plex/cgns/plexcgns2.c:104</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: #2 DMPlexCreateCGNS() at /home/jesus/Desktop/JAF_NML/3rd_Party/PETSc/petsc/src/dm/impls/plex/plexcgns.c:60</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: #3 DMPlexCreateCGNSFromFile_Internal() at /home/jesus/Desktop/JAF_NML/3rd_Party/PETSc/petsc/src/dm/impls/plex/cgns/plexcgns2.c:27</div>
<div class="FluidPluginCopy ContentPasted3">[0]PETSC ERROR: #4 DMPlexCreateCGNSFromFile() at /home/jesus/Desktop/JAF_NML/3rd_Party/PETSc/petsc/src/dm/impls/plex/plexcgns.c:29</div>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted1 ContentPasted3"><br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted1 ContentPasted3">I looked around mail archives for clused and found this
one (</span><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0"><a href="https://lists.mcs.anl.gov/pipermail/petsc-users/2018-June/035544.html" id="LPlnk715632">https://lists.mcs.anl.gov/pipermail/petsc-users/2018-June/035544.html</a>).
There, Matt provides a link to the source code for <span style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="FluidPluginCopy"><span style="background-color: rgb(255, 255, 255);" class="FluidPluginCopy"><span style="background-color: rgb(255, 255, 255);" class="FluidPluginCopy ContentPasted7">DMPlexCreateCGNSFromFile()</span></span></span>
and another (seemingly broken) link to CGNS files that can be opened with the former<span style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="FluidPluginCopy"><span style="background-color: rgb(255, 255, 255);" class="FluidPluginCopy ContentPasted5"></span></span>.
After reading the source code I now understand that <span style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="FluidPluginCopy ContentPasted4">
it </span>is hardcoded for CGNS files that feature a single "base" and a single "section", whatever those are.
<br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0"><br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">After navigating the CGNS documentation, I can sympathize with the comments
in the source code.<br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0"><br>
</span></div>
<div class="elementToProof"><span style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="ContentPasted0">Anyhow, I wanted to ask if I could be furnished with one such CGNS file
that is compatible with <span style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="FluidPluginCopy">
<span style="background-color: rgb(255, 255, 255);" class="FluidPluginCopy"><span style="background-color: rgb(255, 255, 255);" class="FluidPluginCopy ContentPasted6">DMPlexCreateCGNSFromFile()</span></span></span> to see if I can modify my CGNS files to conform
to it. If not, I will look into building the DAG myself using DMPlex APIs.<br>
</span></div>
<div class="elementToProof">
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<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 <br>
</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;"><br>
</span></p>
<span style="margin: 0px; color: rgb(0, 0, 0); font-family: "Times New Roman", Times, serif; font-size: 12pt;"></span><span style="margin: 0px; color: black; font-family: "Times New Roman", Times, serif; font-size: 12pt;"></span>
<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>