"if deal.II was configured to use LAPACK, but cmake did not "
"find a valid LAPACK library.");
+ /**
+ * This function requires support for the HDF5 library.
+ */
+ DeclExceptionMsg(
+ ExcNeedsHDF5,
+ "You are attempting to use functionality that requires that deal.II is configured "
+ "with HDF5 support. However, when you called 'cmake', HDF5 support "
+ "was not detected.");
+
/**
* This function requires support for the MPI library.
*/
(void)mesh_filename;
(void)solution_filename;
(void)comm;
- AssertThrow(false,
- ExcMessage(
- "This function requires that deal.II is configured "
- "with HDF5 support, but when you called 'cmake', HDF5 support "
- "was not detected."));
+ AssertThrow(false, ExcNeedsHDF5());
#else
const unsigned int n_ranks = Utilities::MPI::n_mpi_processes(comm);
# ifndef DEAL_II_WITH_HDF5
(void)filename;
(void)chunk_size;
- AssertThrow(false,
- ExcMessage(
- "This function requires that deal.II is configured "
- "with HDF5 support, but when you called 'cmake', HDF5 support "
- "was not detected."));
+ AssertThrow(false, ExcNeedsHDF5());
# else
std::pair<unsigned int, unsigned int> chunks_size_ = chunk_size;
{
# ifndef DEAL_II_WITH_HDF5
(void)filename;
- AssertThrow(false,
- ExcMessage(
- "This function requires that deal.II is configured "
- "with HDF5 support, but when you called 'cmake', HDF5 support "
- "was not detected."));
+ AssertThrow(false, ExcNeedsHDF5());
# else
# ifdef H5_HAVE_PARALLEL
// implementation for configurations equipped with a parallel file system