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
52ddac69
Commit
52ddac69
authored
8 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
Fix support for SuperLU 5
* Use correct macro * adjust changes for other types then double, too
parent
1dd8ae1d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!41
Feature/superlu5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/FindSuperLU.cmake
+2
-2
2 additions, 2 deletions
cmake/modules/FindSuperLU.cmake
dune/istl/superlu.hh
+22
-1
22 additions, 1 deletion
dune/istl/superlu.hh
with
24 additions
and
3 deletions
cmake/modules/FindSuperLU.cmake
+
2
−
2
View file @
52ddac69
...
...
@@ -50,7 +50,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"
NAMES
"superlu_5.2"
"superlu_5.1.1"
"superlu_5.1"
"superlu_5.0"
"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
...
...
@@ -58,7 +58,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"
NAMES
"superlu_5.2"
"superlu_5.1.1"
"superlu_5.1"
"superlu_5.0"
"superlu_4.3"
"superlu_4.2"
"superlu_4.1"
"superlu_4.0"
"superlu"
PATH_SUFFIXES
"lib"
"lib32"
"lib64"
)
...
...
This diff is collapsed.
Click to expand it.
dune/istl/superlu.hh
+
22
−
1
View file @
52ddac69
...
...
@@ -105,9 +105,16 @@ namespace Dune
float
*
rpg
,
float
*
rcond
,
float
*
ferr
,
float
*
berr
,
mem_usage_t
*
memusage
,
SuperLUStat_t
*
stat
,
int
*
info
)
{
#if SUPERLU_MIN_VERSION_5
GlobalLU_t
gLU
;
sgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
&
gLU
,
memusage
,
stat
,
info
);
#else
sgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
memusage
,
stat
,
info
);
#endif
}
};
...
...
@@ -146,7 +153,7 @@ namespace Dune
double
*
rpg
,
double
*
rcond
,
double
*
ferr
,
double
*
berr
,
mem_usage_t
*
memusage
,
SuperLUStat_t
*
stat
,
int
*
info
)
{
#if SUPERLU_MIN_VER_5
#if SUPERLU_MIN_VER
SION
_5
GlobalLU_t
gLU
;
dgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
...
...
@@ -193,9 +200,16 @@ namespace Dune
double
*
rpg
,
double
*
rcond
,
double
*
ferr
,
double
*
berr
,
mem_usage_t
*
memusage
,
SuperLUStat_t
*
stat
,
int
*
info
)
{
#if SUPERLU_MIN_VERSION_5
GlobalLU_t
gLU
;
zgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
&
gLU
,
memusage
,
stat
,
info
);
#else
zgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
memusage
,
stat
,
info
);
#endif
}
};
...
...
@@ -233,9 +247,16 @@ namespace Dune
float
*
rpg
,
float
*
rcond
,
float
*
ferr
,
float
*
berr
,
mem_usage_t
*
memusage
,
SuperLUStat_t
*
stat
,
int
*
info
)
{
#if SUPERLU_MIN_VERSION_5
GlobalLU_t
gLU
;
cgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
&
gLU
,
memusage
,
stat
,
info
);
#else
cgssvx
(
options
,
mat
,
perm_c
,
perm_r
,
etree
,
equed
,
R
,
C
,
L
,
U
,
work
,
lwork
,
B
,
X
,
rpg
,
rcond
,
ferr
,
berr
,
memusage
,
stat
,
info
);
#endif
}
};
...
...
This diff is collapsed.
Click to expand it.
Christoph Grüninger
@gruenich
mentioned in commit
1001e8c6
·
8 years ago
mentioned in commit
1001e8c6
mentioned in commit 1001e8c634245848f35fdf9754e0238815bcd4bb
Toggle commit list
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