<div dir="ltr"><div dir="ltr"><p class="gmail-">Dear PETSc developers and users,</p>
<p class="gmail-">I am currently exploring the integration of MMG3D with PETSc. Since MMG3D supports only serial execution, I am planning to combine parallel and serial computing in my workflow. Specifically, after solving the linear systems in parallel using PETSc:</p>
<ol>
<li class="gmail-">
<p class="gmail-">I intend to use <code>DMPlexGetGatherDM</code> to collect the entire mesh on the root process for input to MMG3D.</p>
</li>
<li class="gmail-">
<p class="gmail-">Additionally, I plan to gather the error field onto the root process using <code>VecScatter</code>.</p>
</li>
</ol>
<p class="gmail-">However, I am concerned that the nth value in the gathered error vector (step 2) may not correspond to the nth element in the gathered mesh (step 1). Is this a valid concern?</p>
<p class="gmail-">Do you have any suggestions or recommended practices for ensuring correct correspondence between the solution fields and the mesh when switching from parallel to serial mode?</p><div><br></div><div>Thanks, </div><div><br></div><div>Xiaodong </div></div></div>