[petsc-users] Vector layout in PetscBinaryRead.m

Matthew Knepley knepley at gmail.com
Wed May 1 16:51:34 CDT 2019


On Wed, May 1, 2019 at 5:44 PM zakaryah via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> 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?
>

No, we do not preserve that information in the PETSc binary format. We have
richer output that does, like HDF5.

  Thanks,

    Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190501/5e6ffd74/attachment.html>


More information about the petsc-users mailing list