From: Wolfgang Bangerth Date: Wed, 7 Sep 2022 21:37:10 +0000 (-0600) Subject: Improve error message. X-Git-Tag: v9.5.0-rc1~936^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe6b5c84f538757167d18b165a2cf8c282432ef;p=dealii.git Improve error message. --- 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