From fbe6b5c84f538757167d18b165a2cf8c282432ef Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 7 Sep 2022 15:37:10 -0600 Subject: [PATCH] Improve error message. --- source/base/data_out_base.cc | 6 +++++- source/lac/scalapack.cc | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index a1c23ca2b2..e4d8710562 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -8825,7 +8825,11 @@ DataOutBase::write_hdf5_parallel( (void)mesh_filename; (void)solution_filename; (void)comm; - AssertThrow(false, ExcMessage("HDF5 support is disabled.")); + AssertThrow(false, + ExcMessage( + "This function requires that deal.II is configured " + "with HDF5 support, but when you called 'cmake', HDF5 support " + "was not detected.")); #else const unsigned int n_ranks = Utilities::MPI::n_mpi_processes(comm); diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index 5d01e49771..ff104138d2 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -2611,7 +2611,11 @@ ScaLAPACKMatrix::save( # ifndef DEAL_II_WITH_HDF5 (void)filename; (void)chunk_size; - AssertThrow(false, ExcMessage("HDF5 support is disabled.")); + AssertThrow(false, + ExcMessage( + "This function requires that deal.II is configured " + "with HDF5 support, but when you called 'cmake', HDF5 support " + "was not detected.")); # else std::pair chunks_size_ = chunk_size; @@ -3043,7 +3047,11 @@ ScaLAPACKMatrix::load(const std::string &filename) { # ifndef DEAL_II_WITH_HDF5 (void)filename; - AssertThrow(false, ExcMessage("HDF5 support is disabled.")); + AssertThrow(false, + ExcMessage( + "This function requires that deal.II is configured " + "with HDF5 support, but when you called 'cmake', HDF5 support " + "was not detected.")); # else # ifdef H5_HAVE_PARALLEL // implementation for configurations equipped with a parallel file system -- 2.39.5