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

[SuperLU] Remove support for SuperLU older then version 4.0

parent 5b0285d4
No related branches found
No related tags found
1 merge request!14Feature/issue4 remove support superlu older 4.0
...@@ -55,7 +55,7 @@ find_path(SUPERLU_INCLUDE_DIR ...@@ -55,7 +55,7 @@ find_path(SUPERLU_INCLUDE_DIR
# look for library, only at positions given by the user # look for library, only at positions given by the user
find_library(SUPERLU_LIBRARY find_library(SUPERLU_LIBRARY
NAMES "superlu_4.3" "superlu_4.2" "superlu_4.1" "superlu_4.0" "superlu_3.1" "superlu_3.0" "superlu" NAMES "superlu_4.3" "superlu_4.2" "superlu_4.1" "superlu_4.0" "superlu"
PATHS ${SUPERLU_PREFIX} ${SUPERLU_ROOT} PATHS ${SUPERLU_PREFIX} ${SUPERLU_ROOT}
PATH_SUFFIXES "lib" "lib32" "lib64" PATH_SUFFIXES "lib" "lib32" "lib64"
NO_DEFAULT_PATH NO_DEFAULT_PATH
...@@ -63,7 +63,7 @@ find_library(SUPERLU_LIBRARY ...@@ -63,7 +63,7 @@ find_library(SUPERLU_LIBRARY
# look for library files, including default paths # look for library files, including default paths
find_library(SUPERLU_LIBRARY find_library(SUPERLU_LIBRARY
NAMES "superlu_4.3" "superlu_4.2" "superlu_4.1" "superlu_4.0" "superlu_3.1" "superlu_3.0" "superlu" NAMES "superlu_4.3" "superlu_4.2" "superlu_4.1" "superlu_4.0" "superlu"
PATH_SUFFIXES "lib" "lib32" "lib64" PATH_SUFFIXES "lib" "lib32" "lib64"
) )
...@@ -87,16 +87,6 @@ endif(SUPERLU_LIBRARY) ...@@ -87,16 +87,6 @@ endif(SUPERLU_LIBRARY)
if(BLAS_LIBRARIES) if(BLAS_LIBRARIES)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${BLAS_LIBRARIES}) set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${BLAS_LIBRARIES})
endif(BLAS_LIBRARIES) endif(BLAS_LIBRARIES)
# check whether "mem_usage_t.expansions" was found in "slu_ddefs.h"
CHECK_C_SOURCE_COMPILES("
#include <slu_ddefs.h>
int main(void)
{
mem_usage_t mem;
return mem.expansions;
}"
HAVE_MEM_USAGE_T_EXPANSIONS)
# check whether version is at least 4.3 # check whether version is at least 4.3
CHECK_C_SOURCE_COMPILES(" CHECK_C_SOURCE_COMPILES("
#include <slu_ddefs.h> #include <slu_ddefs.h>
...@@ -111,7 +101,7 @@ if(SUPERLU_MIN_VERSION_4_3) ...@@ -111,7 +101,7 @@ if(SUPERLU_MIN_VERSION_4_3)
set(SUPERLU_WITH_VERSION "SuperLU >= 4.3" CACHE STRING set(SUPERLU_WITH_VERSION "SuperLU >= 4.3" CACHE STRING
"Human readable string containing SuperLU version information.") "Human readable string containing SuperLU version information.")
else() else()
set(SUPERLU_WITH_VERSION "SuperLU <= 4.2, post 2005" CACHE STRING set(SUPERLU_WITH_VERSION "SuperLU <= 4.2 and >= 4.0" CACHE STRING
"Human readable string containing SuperLU version information.") "Human readable string containing SuperLU version information.")
endif(SUPERLU_MIN_VERSION_4_3) endif(SUPERLU_MIN_VERSION_4_3)
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
/* Define to ENABLE_ARPACKPP if the ARPACK++ library is available */ /* Define to ENABLE_ARPACKPP if the ARPACK++ library is available */
#cmakedefine HAVE_ARPACKPP ENABLE_ARPACKPP #cmakedefine HAVE_ARPACKPP ENABLE_ARPACKPP
/* Define to 1 if 'expansions' is a member of 'mem_usage_t'. */ /* Define to 0 as all versions since SuperLu 4.0 do no longer provide it that way. */
#cmakedefine HAVE_MEM_USAGE_T_EXPANSIONS @HAVE_MEM_USAGE_T_EXPANSIONS@ #define HAVE_MEM_USAGE_T_EXPANSIONS 1
/* define to 1 if SuperLU header slu_ddefs.h contains SLU_DOUBLE */ /* define to 1 if SuperLU header slu_ddefs.h contains SLU_DOUBLE */
#cmakedefine SUPERLU_MIN_VERSION_4_3 @SUPERLU_MIN_VERSION_4_3@ #cmakedefine SUPERLU_MIN_VERSION_4_3 @SUPERLU_MIN_VERSION_4_3@
......
...@@ -496,12 +496,8 @@ namespace Dune ...@@ -496,12 +496,8 @@ namespace Dune
QuerySpaceChooser<T>::querySpace(&L, &U, &memusage); QuerySpaceChooser<T>::querySpace(&L, &U, &memusage);
dinfo<<"L\\U MB "<<memusage.for_lu/1e6<<" \ttotal MB needed "<<memusage.total_needed/1e6 dinfo<<"L\\U MB "<<memusage.for_lu/1e6<<" \ttotal MB needed "<<memusage.total_needed/1e6
<<" \texpansions "; <<" \texpansions ";
#ifdef HAVE_MEM_USAGE_T_EXPANSIONS
std::cout<<memusage.expansions<<std::endl;
#else
std::cout<<stat.expansions<<std::endl; std::cout<<stat.expansions<<std::endl;
#endif
} else if ( info > 0 && lwork == -1 ) { } else if ( info > 0 && lwork == -1 ) {
dinfo<<"** Estimated memory: "<< info - n<<std::endl; dinfo<<"** Estimated memory: "<< info - n<<std::endl;
} }
......
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