]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide dummy implementations of SparseDirectMUMPS when not configuring with MUMPS. 18503/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 May 2025 03:41:27 +0000 (21:41 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 26 May 2025 03:41:43 +0000 (21:41 -0600)
source/lac/sparse_direct.cc

index 48f9d4763356c72f2ca9851a04867ec60152a274..6f5aac0dc5a4f7e3f49de9b2babe6de3d7abc34e 100644 (file)
@@ -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
 
 

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.