<div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks Matt.  I have had problems getting HDF5 to work when I run my solver in parallel.  Can you link me to an example which writes a vector as HDF5 that will work in parallel?  To be clear - I don't care if the I/O is in serial, I just need the VecView to not crash with multiple processors.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 1, 2019 at 5:51 PM Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Wed, May 1, 2019 at 5:44 PM zakaryah via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-size:small">I'm using PETSc to solve some equations, outputting the results using PetscViewerBinaryOpen and VecView, then loading the vector files into Matlab using PetscBinaryRead.m.  The vectors are global vectors created from a 3D DMDA.  Is there a way to extract the layout from the binary file, so that I can visualize the vectors on a 3D grid?</div></div>
</blockquote></div><br clear="all"><div>No, we do not preserve that information in the PETSc binary format. We have richer output that does, like HDF5.</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div><br></div>-- <br><div dir="ltr" class="gmail-m_8640369202681673386gmail_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>
</blockquote></div>