<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 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:</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 style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I am a new PETSc user who is working on an FEA code and ran into an issue pertaining to DMPlex. </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>
I have a gmsh mesh file that I import using "DMPlexCreateGmshFromFile()." I then fetch the XYZ coordinates of the nodes from this mesh using "DMGetCoordinatesLocal()." Deeper into the code, I have a call to "DMPlexGetTransitiveClosure()" inside a loop that
scans the cells (I think you guys refer to it as "depth-3") to reference nodes. Here's the catch: If I attempt to reference the array from the vector (Vec) in the call to "DMGetCoordinatesLocal()" by using something like "VecGetArray()," or "VecGetArrayRead(),"
the call to "DMPlexGetTransitiveClosure()" errors-out with a segmentation fault. I need access to that vector's stored XYZ-data because I'm using my own finite element scripts. <span style="font-family: "Times New Roman", Times, serif; font-size: 12pt;">I
have no clue as to why this is happening. Maybe it is a newbie mistake and I am forgetting to restore some memory?</span></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 style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Code, error message, and gmsh files are attached.</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Your help is much appreciated.</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 style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Machine Type: HP Laptop</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
C-compiler: Gnu C<br>
OS: Ubuntu 20.04</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
PETSc version: 3.16.0</div>
<div style="font-family: "Times New Roman", Times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
MPI Implementation: MPICH</div>
<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; font-family: Calibri, Helvetica, sans-serif; color: rgb(0, 0, 0);">
<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; 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; 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; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;">Embry-Riddle Aeronautical University - Daytona Beach FL</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;">M.Sc. Aerospace Engineering | May 2022</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;">B.Sc. Aerospace Engineering</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;">B.Sc. Computational Mathematics</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: rgb(0, 0, 0); font-family: Courant; font-size: 12pt;"> </span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"><span style="color: rgb(0, 0, 0); font-family: Courant; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;">Sigma
Gamma Tau</span><span style="color: rgb(0, 0, 0); font-family: Courant; font-size: 12pt; background-color: rgb(255, 255, 255); display: inline !important;"> </span><br>
</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: rgb(0, 0, 0); font-family: Courant; font-size: 12pt;">Tau Beta Pi</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"><span style="margin: 0px; color: rgb(0, 0, 0); font-family: Courant; font-size: 12pt;">Honors Program</span></span></p>
<p style="background: white; margin: 0px; line-height: normal;"><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"> </span></p>
<p style="background: white; margin: 0px; line-height: normal;"><u><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;">Phone:</span></u><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"> (386)-843-1829</span></p>
<p style="background: white; margin: 0px; line-height: normal;"><u><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;">Email(s):</span></u><span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"> ferranj2@my.erau.edu</span></p>
<p style="background: white; margin: 0px; line-height: normal; text-indent: 0.5in;">
<span style="margin: 0px; color: black; font-family: Courant; font-size: 12pt;"><span style="margin:0px">
</span>jesus.ferrand@gmail.com</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>