<div dir="ltr">Personally, I would see the educational aspect as helpful. Most of what I learn about PETSc comes from '-help | grep XXX'.<br><div><br></div><div>Nate</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 1, 2019 at 11:27 AM Jed Brown via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Matthew Knepley via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> writes:<br>
<br>
> Can anyone think of a way to get a better message from<br>
<br>
We could register all types and implement PetscViewerCreate_HDF5() to<br>
raise an error when not configured with HDF5.  The "downside" is that<br>
-help would show implementations that aren't supported by the current<br>
configuration, but I see that as a minor consequence, and perhaps not<br>
even negative (because users would learn about implementations that<br>
might be useful).<br>
<br>
> [0]PETSC ERROR: --------------------- Error Message<br>
> --------------------------------------------------------------<br>
> [0]PETSC ERROR: Unknown type. Check for miss-spelling or missing package:<br>
> <a href="http://www.mcs.anl.gov/petsc/documentation/installation.html#external" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/documentation/installation.html#external</a><br>
> [0]PETSC ERROR: Unknown PetscViewer type given: hdf5<br>
> [0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for<br>
> trouble shooting.<br>
> [0]PETSC ERROR: Petsc Release Version 3.10.2, Oct, 09, 2018<br>
> [0]PETSC ERROR: ./testPlex on a  named <a href="http://kif.eng.buffalo.edu" rel="noreferrer" target="_blank">kif.eng.buffalo.edu</a> by bldenton Mon<br>
> Sep 30 21:18:30 2019<br>
> [0]PETSC ERROR: Configure options --with-make-np=24<br>
> --prefix=/kif1/data/shared/software/libs/petsc/3.10.2/gcc/8.2.0/mpich/3.2.1/openblas/0.2.20/opt<br>
> --with-debugging=false --COPTFLAGS="-O3 -mavx" --CXXOPTFLAGS="-O3 -mavx"<br>
> --FOPTFLAGS=-O3 --with-shared-libraries=1<br>
> --with-mpi-dir=/kif1/data/shared/software/libs/mpich/3.2.1/gcc/8.2.0<br>
> --with-mumps=true --download-mumps=1 --with-metis=true --download-metis=1<br>
> --with-parmetis=true --download-parmetis=1 --with-superlu=true<br>
> --download-superlu=1 --with-superludir=true --download-superlu_dist=1<br>
> --with-blacs=true --download-blacs=1 --with-scalapack=true<br>
> --download-scalapack=1 --with-hypre=true --download-hypre=1<br>
> --with-blas-lib="[/kif1/data/shared/software/libs/openblas/0.2.20/gcc/8.2.0/lib/libopenblas.so]"<br>
> --with-lapack-lib="[/kif1/data/shared/software/libs/openblas/0.2.20/gcc/8.2.0/lib/libopenblas.so]"<br>
> --LDFLAGS=<br>
> [0]PETSC ERROR: #1 PetscViewerSetType() line 444 in<br>
> /kif1/data/shared/software/builddir/petsc-L9c6Pv/petsc-3.10.2/src/sys/classes/viewer/interface/viewreg.c<br>
> [0]PETSC ERROR: #2 PetscOptionsGetViewer() line 327 in<br>
> /kif1/data/shared/software/builddir/petsc-L9c6Pv/petsc-3.10.2/src/sys/classes/viewer/interface/viewreg.c<br>
> [0]PETSC ERROR: #3 PetscObjectViewFromOptions() line 133 in<br>
> /kif1/data/shared/software/builddir/petsc-L9c6Pv/petsc-3.10.2/src/sys/objects/destroy.c<br>
> [0]PETSC ERROR: #4 main() line 210 in<br>
> /kif1/data/users/bldenton/EGADSlite/egadsPlex/egadsPlex.c<br>
><br>
> I want it to say "Try configuring with --download-hdf5"<br>
><br>
>   Thanks,<br>
><br>
>      Matt<br>
><br>
> -- <br>
> What most experimenters take for granted before they begin their<br>
> experiments is infinitely more interesting than any results to which their<br>
> experiments lead.<br>
> -- Norbert Wiener<br>
><br>
> <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a> <<a href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">http://www.cse.buffalo.edu/~knepley/</a>><br>
</blockquote></div>