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
Container Registry
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
Stephan Hilb
dune-istl
Commits
823a76c5
Commit
823a76c5
authored
10 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake][suitesparse] Add ldltest and spqr test to build system
Handle skipped test for missing dependencies.
parent
4bb59d9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dune/istl/test/CMakeLists.txt
+9
-1
9 additions, 1 deletion
dune/istl/test/CMakeLists.txt
dune/istl/test/ldltest.cc
+5
-0
5 additions, 0 deletions
dune/istl/test/ldltest.cc
dune/istl/test/spqrtest.cc
+5
-0
5 additions, 0 deletions
dune/istl/test/spqrtest.cc
with
19 additions
and
1 deletion
dune/istl/test/CMakeLists.txt
+
9
−
1
View file @
823a76c5
...
@@ -67,7 +67,15 @@ if(SuiteSparse_UMFPACK_FOUND)
...
@@ -67,7 +67,15 @@ if(SuiteSparse_UMFPACK_FOUND)
set_directory_properties
(
PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"umfpack_decomp"
)
set_directory_properties
(
PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
"umfpack_decomp"
)
endif
()
endif
()
if
(
SUPERLU_FOUND OR SuiteSparse_UMFPACK_FOUND
)
dune_add_test
(
SOURCES ldltest.cc
SKIP_ON_77
)
dune_add_test
(
SOURCES spqrtest.cc
SKIP_ON_77
)
if
((
SUPERLU_FOUND
)
OR
(
SuiteSparse_UMFPACK_FOUND
))
dune_add_test
(
SOURCES overlappingschwarztest.cc
)
dune_add_test
(
SOURCES overlappingschwarztest.cc
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
dune/istl/test/ldltest.cc
+
5
−
0
View file @
823a76c5
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
#if HAVE_LDL
try
try
{
{
typedef
double
FIELD_TYPE
;
typedef
double
FIELD_TYPE
;
...
@@ -80,4 +81,8 @@ int main(int argc, char** argv)
...
@@ -80,4 +81,8 @@ int main(int argc, char** argv)
{
{
std
::
cerr
<<
"Unknown exception"
<<
std
::
endl
;
std
::
cerr
<<
"Unknown exception"
<<
std
::
endl
;
}
}
#else // #if HAVE_LDL
std
::
cerr
<<
"You need SuiteSparse's LDL to run this test."
<<
std
::
endl
;
return
77
;
#endif // #if HAVE_LDL
}
}
This diff is collapsed.
Click to expand it.
dune/istl/test/spqrtest.cc
+
5
−
0
View file @
823a76c5
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
#if HAVE_SPQR
try
try
{
{
typedef
double
FIELD_TYPE
;
typedef
double
FIELD_TYPE
;
...
@@ -81,4 +82,8 @@ int main(int argc, char** argv)
...
@@ -81,4 +82,8 @@ int main(int argc, char** argv)
{
{
std
::
cerr
<<
"Unknown exception"
<<
std
::
endl
;
std
::
cerr
<<
"Unknown exception"
<<
std
::
endl
;
}
}
#else // #if HAVE_SPQR
std
::
cerr
<<
"You need SuiteSparse's LDL to run this test."
<<
std
::
endl
;
return
77
;
#endif // #if HAVE_SPQR
}
}
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