From 44a0a1dbb212704360c16ccb2945c93800ee4f09 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 25 May 2025 21:41:27 -0600 Subject: [PATCH] Provide dummy implementations of SparseDirectMUMPS when not configuring with MUMPS. --- source/lac/sparse_direct.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/lac/sparse_direct.cc b/source/lac/sparse_direct.cc index 48f9d47633..6f5aac0dc5 100644 --- a/source/lac/sparse_direct.cc +++ b/source/lac/sparse_direct.cc @@ -1099,6 +1099,24 @@ SparseDirectMUMPS::get_icntl() return id.icntl; } + +#else + +SparseDirectMUMPS::SparseDirectMUMPS(const AdditionalData &) +{ + AssertThrow( + false, + ExcMessage( + "To call this function you need MUMPS, but you configured deal.II " + "without passing the necessary switch to 'cmake'. Please consult the " + "installation instructions at https://dealii.org/current/readme.html")); +} + + +SparseDirectMUMPS::~SparseDirectMUMPS() +{} + + #endif // DEAL_II_WITH_MUMPS -- 2.39.5