[petsc-users] Vector layout in PetscBinaryRead.m

Matthew Knepley knepley at gmail.com
Thu May 2 14:29:57 CDT 2019


On Thu, May 2, 2019 at 3:13 PM zakaryah via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> I get a segfault on VecViewFromOptions, with the command line you
> suggested.  Likewise, if I execute ex10 (Tests I/O of vectors for
> different data formats (binary,HDF5) and illustrates the use of
> user-defined event logging), even with -n 1, I get a segfault.
>
> Is VecViewFromOptions documented somewhere?  Google only turns up the
> version from 3.2, which took two arguments.  From the source, it looks like
> a wrapper for PetscObjectViewFromOptions, but I still don't see all the
> format specifications.  I'd like to test whether the same code crashes for
> other formats, like binary, matlab, etc.
>

I think it must be you call. Lets try and example first:

  cd $PETSC_DIR/src/snes/examples/tutorials
  make ex5
  ./ex5 -mms 1 -sol_view hdf5:sol.h5

  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/20190502/2b2e6eb5/attachment.html>


More information about the petsc-users mailing list