From: Wolfgang Bangerth Date: Mon, 26 May 2025 03:41:27 +0000 (-0600) Subject: Provide dummy implementations of SparseDirectMUMPS when not configuring with MUMPS. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44a0a1dbb212704360c16ccb2945c93800ee4f09;p=dealii.git Provide dummy implementations of SparseDirectMUMPS when not configuring with MUMPS. --- 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