<div dir="ltr"><div dir="ltr">On Thu, Jul 9, 2020 at 2:51 PM David Scott <<a href="mailto:d.scott@epcc.ed.ac.uk">d.scott@epcc.ed.ac.uk</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">Hello,<br>
<br>
I have written out a Vec using the (Fortran) HDF5 routines provided by<br>
PETSc.<br>
I now want to import the data into ParaView 5.8.0 and display a contour.<br>
I can read the data in using VisItPixieReader but the contour tool is<br>
not available. Can I use the HDF5 files produced by PETSc 13.3.3 with<br>
ParaView and, if so, how?<br></blockquote><div><br></div><div>When you call VecView(), it just writes an array of real numbers to the HDF5 file. If Paraview can use an array</div><div>of real numbers, then you are all set. I don't know how to make Paraview do that. What I do is to write an</div><div>Xdmf file that points to the HDF5 file for the data and specifies the mesh using XML. Note that you can have</div><div>a DMDA or DMPlex write VTK files, which Paraview can read directly.</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">
David<br>
<br>
<br>
<br>
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.<br>
</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>