<div class="gmail_quote">On Mon, Oct 17, 2011 at 03:48, Richard Katz <span dir="ltr"><<a href="mailto:richard.katz@earth.ox.ac.uk">richard.katz@earth.ox.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":f">I think that PetscViewerBinaryMatlabXXX() is a good model for this hdf5 Viewer.  Each binary output file is accompanied by a light-weight descriptor file.<br>
<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/docs/manualpages/DM/PetscViewerBinaryMatlabOpen.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-2/snapshots/petsc-current/docs/manualpages/DM/PetscViewerBinaryMatlabOpen.html</a><br>

<br>
Incidentally, I guess the reason that PetscViewerBinaryMatlabXXX() exists outside of the VecView() and PetscBagView() context is that they must be aware of DMDAs.  It seems a bit strange that there is no generic "VecDMDAView()"<br>
</div></blockquote><div><br></div><div>It's spelled VecView() and any viewers that need you to call something else should be fixed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":f">
<div class="im"><br>
> I have a dream of eventually having model code (via the DM interface) callable by the vis plugin so that we could store only state variables (e.g. density, momentum, energy) and compute derived quantities (e.g. velocity, pressure, temperature, lift, drag, fluxes, stresses) in a consistent way. As it is, you have to write loads of redundant information into files if you want to visualize it. That's lame.<br>

<br>
</div>Does this violate PETSc policy of being science-neutral?  Or do you mean this is all implemented in application-code?  Seems to me that the user should be responsible for physics-based post-processing of the output (though maybe I have misunderstood you).</div>
</blockquote></div><br><div>I only mean to provide hooks so that users can provide this code. It's too much work these days to get decent visualization if you have to roll everything yourself.</div>