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
e9aed386
Commit
e9aed386
authored
9 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/issue4-remove-support-superlu-older-4.0' into 'master'
Feature/issue4 remove support superlu older 4.0 This fixes
#4
See merge request
!14
parents
1ffb8ead
122ccd41
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cmake/modules/FindSuperLU.cmake
+4
-14
4 additions, 14 deletions
cmake/modules/FindSuperLU.cmake
config.h.cmake
+2
-5
2 additions, 5 deletions
config.h.cmake
dune/istl/superlu.hh
+1
-26
1 addition, 26 deletions
dune/istl/superlu.hh
dune/istl/supermatrix.hh
+1
-21
1 addition, 21 deletions
dune/istl/supermatrix.hh
with
8 additions
and
66 deletions
cmake/modules/FindSuperLU.cmake
+
4
−
14
View file @
e9aed386
...
...
@@ -33,7 +33,7 @@
#
# look for BLAS
find_package
(
BLAS QUIET
REQUIRED
)
find_package
(
BLAS QUIET
)
if
(
NOT BLAS_FOUND
)
message
(
WARNING
"SuperLU requires BLAS which was not found, skipping the test."
)
return
()
...
...
@@ -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
−
5
View file @
e9aed386
...
...
@@ -34,11 +34,8 @@
/* Define to ENABLE_ARPACKPP if the ARPACK++ library is available */
#cmakedefine HAVE_ARPACKPP ENABLE_ARPACKPP
/* define to 1 because older versions of SuperLU are no longer supported*/
#define SUPERLU_POST_2005_VERSION 1
/* Define to 1 if 'expansions' is a member of 'mem_usage_t'. */
#cmakedefine 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
−
26
View file @
e9aed386
...
...
@@ -13,7 +13,6 @@
#ifndef SUPERLU_NTYPE
#define SUPERLU_NTYPE 1
#endif
#ifdef SUPERLU_POST_2005_VERSION
#if SUPERLU_NTYPE==0
#include
"slu_sdefs.h"
...
...
@@ -31,26 +30,6 @@
#include
"slu_zdefs.h"
#endif
#else
#if SUPERLU_NTYPE==0
#include
"ssp_defs.h"
#endif
#if SUPERLU_NTYPE==1
#include
"dsp_defs.h"
#warning Support for SuperLU older than SuperLU 3.0 from August 2005 is deprecated.
#endif
#if SUPERLU_NTYPE==2
#include
"csp_defs.h"
#endif
#if SUPERLU_NTYPE>=3
#include
"zsp_defs.h"
#endif
#endif
#include
"solvers.hh"
#include
"supermatrix.hh"
#include
<algorithm>
...
...
@@ -517,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.
dune/istl/supermatrix.hh
+
1
−
21
View file @
e9aed386
...
...
@@ -4,7 +4,6 @@
#define DUNE_ISTL_SUPERMATRIX_HH
#if HAVE_SUPERLU
#ifdef SUPERLU_POST_2005_VERSION
#ifndef SUPERLU_NTYPE
#define SUPERLU_NTYPE 1
...
...
@@ -26,25 +25,6 @@
#include
"slu_zdefs.h"
#endif
#else
#if SUPERLU_NTYPE==0
#include
"ssp_defs.h"
#endif
#if SUPERLU_NTYPE==1
#include
"dsp_defs.h"
#endif
#if SUPERLU_NTYPE==2
#include
"csp_defs.h"
#endif
#if SUPERLU_NTYPE>=3
#include
"zsp_defs.h"
#endif
#endif
#include
"bcrsmatrix.hh"
#include
"bvector.hh"
#include
<dune/common/fmatrix.hh>
...
...
@@ -350,5 +330,5 @@ namespace Dune
SuperLUMatrix
*
slumat
;
};
}
#endif
#endif
// HAVE_SUPERLU
#endif
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