<div dir="ltr"><div dir="ltr">On Sat, Oct 3, 2020 at 8:36 PM Swarnava Ghosh <<a href="mailto:swarnava89@gmail.com">swarnava89@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Petsc users,<div><br></div><div>I have a 3D distributed DMPLEX mesh. I would like to visualize the mesh. Specifically, I want to see domain ownership of every MPI rank, i.e. each rank with a different color. . Would you please suggest the best way to do this?</div></div></blockquote><div><br></div><div>I do it this way. I use DMViewFromOptions(dm, NULL, "-dm_view") in my code. Then I run it</div><div><br></div><div>  ./my_prog -dm_view hdf5:mesh.h5 -dm_partition_view</div><div>  ${PETSC_DIR}/lib/petsc/bin/petsc_gen_xdmf.py mesh.h5</div><div><br></div><div>which creates mesh.h5 and mesh.xmf which can be loaded in Paraview. There is a "rank" field there that you can visualize over the mesh.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Sincerely,</div><div>SG</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>