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