<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I would like to write out my solution to a VTK file where I use unstructured<br></div><div>grids in DMPlex.<br></div><br></div>The solution corresponds to  harmonic frequencies (~ 5-10 distinct) which are<br>

</div><div>currently saved into a Vec* object. These vectors were created by duplicating the<br>global vector for the DM object. (I know that they correspond to the right cell.)<br><br></div>Is it possible to have one file which would contain the mesh from the DM<br>
</div>object and all the Vec* objects?<br></div>Would I have to clone the original DM and use<br><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerVTKAddField.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerVTKAddField.html</a><br>
</div>to include all the vectors?<br><div><div><div><br></div><div>In the above function does<br>PetscViewerVTKWriteFunction<br></div><div>just need to be<br><br></div><div>myWriteFunc(vec,viewer)<br>{<br></div><div>VecView(vec,viewer)<br>
</div><div>}<br></div><div>if I do not need to make any changes to the vector?<br></div><div><br></div><div>Thanks.<br></div><div><div><div><div><div><div><div><div><div><div>-- <br>Regards,<div>Garnet</div>
</div></div></div></div></div></div></div></div></div></div></div></div></div>