]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
make umfpack optional
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Aug 2004 21:17:48 +0000 (21:17 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 25 Aug 2004 21:17:48 +0000 (21:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@9578 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_direct.h
deal.II/lac/source/sparse_direct.cc

index a3281797bc2d8d1c39c232e2586c99b392c8d3c2..98e983f8077e9ec519bf77180cc168e62698a24c 100644 (file)
@@ -990,6 +990,7 @@ class SparseDirectMA47 : public Subscriptor
 
 
 
+#ifdef HAVE_UMFPACK
 
 /**
  * This class provides an interface to the sparse direct solver UMFPACK (see
@@ -1141,7 +1142,7 @@ class SparseDirectUMFPACK : public Subscriptor
     std::vector<double> control;
 };
 
-
+#endif
 
 /*@}*/
 
index 74c8bff551e7210c72de352864d80d7538b1f127..fe616cbb72175933fc1bfec37aece8c4b1a6cf8a 100644 (file)
 #  include <hsl/hsl.h>
 #endif
 
-
-// include UMFPACK file. annoyingly the UMFPACK files don't seem to have
-// extern "C" wrapped around their headers...
+// include UMFPACK file.
+#ifdef HAVE_UMFPACK
 extern "C" {
 #  include <umfpack.h>
 }
-
+#endif
 
 // if the HSL functions are not there, define them empty and throw an
 // exception
@@ -1582,6 +1581,7 @@ call_ma47cd (const unsigned int *n_rows,           //scalar
 
 
 
+#ifdef HAVE_UMFPACK
 
 SparseDirectUMFPACK::SparseDirectUMFPACK ()
                 :
@@ -1808,7 +1808,7 @@ SparseDirectUMFPACK::solve (const SparseMatrix<double> &matrix,
   solve (rhs_and_solution);
 }
 
-
+#endif
 
 
 // explicit instantiations

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.