Skip to content
Snippets Groups Projects
Commit d0b42794 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[SuiteSparse] Enable CMake checks for LDL and SPQR

Use proper C macros for LDL and SPQR.
parent 823a76c5
No related branches found
No related tags found
1 merge request!8Feature/fs1519 suitesparse ldl spqr
......@@ -12,3 +12,5 @@ find_package(SuiteSparse OPTIONAL_COMPONENTS UMFPACK)
include(AddSuiteSparseFlags)
find_package(ARPACKPP)
include(AddARPACKPPFlags)
find_package(SuiteSparse OPTIONAL_COMPONENTS LDL SPQR)
include(AddSuiteSparseFlags)
......@@ -3,7 +3,7 @@
#ifndef DUNE_ISTL_LDL_HH
#define DUNE_ISTL_LDL_HH
#if HAVE_LDL || defined DOXYGEN
#if HAVE_SUITESPARSE_LDL || defined DOXYGEN
#include <iostream>
#include <type_traits>
......@@ -337,5 +337,5 @@ namespace Dune {
}
#endif //HAVE_LDL
#endif //HAVE_SUITESPARSE_LDL
#endif //DUNE_ISTL_LDL_HH
......@@ -3,7 +3,7 @@
#ifndef DUNE_ISTL_SPQR_HH
#define DUNE_ISTL_SPQR_HH
#if HAVE_SPQR || defined DOXYGEN
#if HAVE_SUITESPARSE_SPQR || defined DOXYGEN
#include <complex>
#include <type_traits>
......@@ -287,5 +287,5 @@ namespace Dune {
}
#endif //HAVE_SPQR
#endif //HAVE_SUITESPARSE_SPQR
#endif //DUNE_ISTL_SPQR_HH
......@@ -14,7 +14,7 @@
int main(int argc, char** argv)
{
#if HAVE_LDL
#if HAVE_SUITESPARSE_LDL
try
{
typedef double FIELD_TYPE;
......@@ -81,8 +81,8 @@ int main(int argc, char** argv)
{
std::cerr << "Unknown exception" << std::endl;
}
#else // #if HAVE_LDL
#else // HAVE_SUITESPARSE_LDL
std::cerr << "You need SuiteSparse's LDL to run this test." << std::endl;
return 77;
#endif // #if HAVE_LDL
#endif // HAVE_SUITESPARSE_LDL
}
......@@ -15,7 +15,7 @@
int main(int argc, char** argv)
{
#if HAVE_SPQR
#if HAVE_SUITESPARSE_SPQR
try
{
typedef double FIELD_TYPE;
......@@ -82,8 +82,8 @@ int main(int argc, char** argv)
{
std::cerr << "Unknown exception" << std::endl;
}
#else // #if HAVE_SPQR
std::cerr << "You need SuiteSparse's LDL to run this test." << std::endl;
#else // HAVE_SUITESPARSE_SPQR
std::cerr << "You need SuiteSparse's SPQR to run this test." << std::endl;
return 77;
#endif // #if HAVE_SPQR
#endif // HAVE_SUITESPARSE_SPQR
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment