Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-istl
Commits
122ccd41
Commit
122ccd41
authored
9 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[SuperLU] Remove support for SuperLU older then version 4.0
parent
5b0285d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
Feature/issue4 remove support superlu older 4.0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/modules/FindSuperLU.cmake
+3
-13
3 additions, 13 deletions
cmake/modules/FindSuperLU.cmake
config.h.cmake
+2
-2
2 additions, 2 deletions
config.h.cmake
dune/istl/superlu.hh
+1
-5
1 addition, 5 deletions
dune/istl/superlu.hh
with
6 additions
and
20 deletions
cmake/modules/FindSuperLU.cmake
+
3
−
13
View file @
122ccd41
...
...
@@ -55,7 +55,7 @@ find_path(SUPERLU_INCLUDE_DIR
# look for library, only at positions given by the user
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
}
PATH_SUFFIXES
"lib"
"lib32"
"lib64"
NO_DEFAULT_PATH
...
...
@@ -63,7 +63,7 @@ find_library(SUPERLU_LIBRARY
# look for library files, including default paths
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"
)
...
...
@@ -87,16 +87,6 @@ endif(SUPERLU_LIBRARY)
if
(
BLAS_LIBRARIES
)
set
(
CMAKE_REQUIRED_LIBRARIES
${
CMAKE_REQUIRED_LIBRARIES
}
${
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_C_SOURCE_COMPILES
(
"
#include <slu_ddefs.h>
...
...
@@ -111,7 +101,7 @@ if(SUPERLU_MIN_VERSION_4_3)
set
(
SUPERLU_WITH_VERSION
"SuperLU >= 4.3"
CACHE STRING
"Human readable string containing SuperLU version information."
)
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."
)
endif
(
SUPERLU_MIN_VERSION_4_3
)
...
...
This diff is collapsed.
Click to expand it.
config.h.cmake
+
2
−
2
View file @
122ccd41
...
...
@@ -34,8 +34,8 @@
/* Define to ENABLE_ARPACKPP if the ARPACK++ library is available */
#cmakedefine HAVE_ARPACKPP ENABLE_ARPACKPP
/* Define to
1 if 'expansions' is a member of 'mem_usage_t'
. */
#
cmake
define HAVE_MEM_USAGE_T_EXPANSIONS
@HAVE_MEM_USAGE_T_EXPANSIONS@
/* Define to
0 as all versions since SuperLu 4.0 do no longer provide it that way
. */
#define HAVE_MEM_USAGE_T_EXPANSIONS
1
/* define to 1 if SuperLU header slu_ddefs.h contains SLU_DOUBLE */
#cmakedefine SUPERLU_MIN_VERSION_4_3 @SUPERLU_MIN_VERSION_4_3@
...
...
This diff is collapsed.
Click to expand it.
dune/istl/superlu.hh
+
1
−
5
View file @
122ccd41
...
...
@@ -496,12 +496,8 @@ namespace Dune
QuerySpaceChooser
<
T
>::
querySpace
(
&
L
,
&
U
,
&
memusage
);
dinfo
<<
"L
\\
U MB "
<<
memusage
.
for_lu
/
1e6
<<
"
\t
total MB needed "
<<
memusage
.
total_needed
/
1e6
<<
"
\t
expansions "
;
#ifdef HAVE_MEM_USAGE_T_EXPANSIONS
std
::
cout
<<
memusage
.
expansions
<<
std
::
endl
;
#else
std
::
cout
<<
stat
.
expansions
<<
std
::
endl
;
#endif
}
else
if
(
info
>
0
&&
lwork
==
-
1
)
{
dinfo
<<
"** Estimated memory: "
<<
info
-
n
<<
std
::
endl
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment