]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve error message.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 7 Sep 2022 21:37:10 +0000 (15:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 7 Sep 2022 21:37:10 +0000 (15:37 -0600)
source/base/data_out_base.cc
source/lac/scalapack.cc

index a1c23ca2b244959dc909d151c8dd14fa59a7853e..e4d8710562a23b61f8054f21f4d5331ac00104d4 100644 (file)
@@ -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);
index 5d01e49771c6802f6a8b68c09336fcc71ff643a5..ff104138d24ed95b36c005907139119654e3053d 100644 (file)
@@ -2611,7 +2611,11 @@ ScaLAPACKMatrix<NumberType>::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<unsigned int, unsigned int> chunks_size_ = chunk_size;
@@ -3043,7 +3047,11 @@ ScaLAPACKMatrix<NumberType>::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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.