]> https://gitweb.dealii.org/ - dealii.git/commitdiff
if we know that at least one of the HSL functions are there,
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 31 Jan 2001 10:24:04 +0000 (10:24 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 31 Jan 2001 10:24:04 +0000 (10:24 +0000)
include the respective include file. Otherwise save some CPU cycles
in the compiler

git-svn-id: https://svn.dealii.org/trunk@3848 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparse_direct.cc

index b0879d5c19b09b34aa5ae8b14dac3c9ee73efc64..180e0c099735ef53d89d8c76e926d5c897e20e27 100644 (file)
 
 
 #include <lac/sparse_direct.h>
-#include <hsl/hsl.h>
 #include <base/memory_consumption.h>
 #include <lac/sparse_matrix.h>
 #include <lac/vector.h>
 
+// if we know that at least one of the HSL functions are there,
+// include the respective include file. Otherwise save some CPU cycles
+// in the compiler
+#if HAVE_HSL_MA27 || HAVE_HSL_MA47
+#  include <hsl/hsl.h>
+#endif
 
 // if the HSL functions are not there, define them empty and throw an
 // exception

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.