<div style="color:black;font: 10pt arial;">
<div class="_3U2q6dcdZCrTrR_42Nxby JWNdg1hee9_Rz6bIGvG1c allowTextSelection">
<div>
<div>

<div dir="ltr">

<div style="color:black;font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif;"><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">Hello,
</span><pre><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">I am a student currently doing a summer project so am fairly new to 
Petsc. </span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"><pre><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">I am trying to alter vertex coordinates of an unstructured mesh to look at mesh movement</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"> in DMPlex</span><span>
</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">after they have been created by DMPlexCreateBoxMesh. I have been altering the first example on the </span><span>
</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">DMPlex documentation here: 
</span><a href="https://www.mcs.anl.gov/petsc/petsc-current/src/dm/impls/plex/examples/tutorials/ex1.c.html" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" id="LPlnk800818"><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">https://www.mcs.anl.gov/petsc/petsc-current/src/dm/impls/plex/examples/tutorials/ex1.c.html</span></a><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"> 
</span></pre></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">I have written something that vaguely does what I want in parallel, but  it has a problem as the output from DMPlexGetPointLocal <br>
seems to be very  inconsistent. Below is my code, I was wondering if anyone had a better way of doing this?</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"></span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;"> I believe</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">
</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">I have a bug but I am not sure where to start. </span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">
<pre><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">Any help and advice/comments very welcome</span><span>.
</span><span style="font-size:12pt;font-family:Calibri,Helvetica,sans-serif;line-height:normal;">Thanks,
Daniel</span></pre></span></pre>
</div>

</div>

</div>

</div>
</div>
</div>