Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-xt
Commits
35ee179c
Verified
Commit
35ee179c
authored
7 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
[tests] fix unusable template combinations when istl/eigen missing
parent
46971bf3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/xt/la/test/matrices.py
+1
-1
1 addition, 1 deletion
dune/xt/la/test/matrices.py
dune/xt/la/test/solver.py
+11
-2
11 additions, 2 deletions
dune/xt/la/test/solver.py
with
12 additions
and
3 deletions
dune/xt/la/test/matrices.py
+
1
−
1
View file @
35ee179c
...
...
@@ -7,7 +7,7 @@ def matrices(cache):
if
codegen
.
have_eigen
(
cache
):
mat
.
extend
([
'
EigenRowMajorSparseMatrix
'
,
'
EigenDenseMatrix
'
])
if
codegen
.
have_
eigen
(
cache
):
if
codegen
.
have_
istl
(
cache
):
mat
.
append
(
'
IstlRowMajorSparseMatrix
'
)
return
mat
...
...
This diff is collapsed.
Click to expand it.
dune/xt/la/test/solver.py
+
11
−
2
View file @
35ee179c
from
matrices
import
latype
from
dune.xt.codegen
import
typeid_to_typedef_name
as
safe_name
from
dune.xt.codegen
import
have_eigen
,
have_istl
,
typeid_to_typedef_name
as
safe_name
types
=
[
f
.
split
(
'
_
'
)
for
f
in
[
'
CommonDenseMatrix_CommonDenseVector_CommonDenseVector_complex
'
,
...
...
@@ -21,4 +21,13 @@ def test_tuple(args):
f
=
'
std::complex<double>
'
return
(
safe_name
(
'
{}_{}_{}_{}
'
.
format
(
o
,
r
,
s
,
f
)),
latype
(
o
,
f
),
latype
(
r
,
f
),
latype
(
s
,
f
))
testtypes
=
[
test_tuple
(
item
)
for
item
in
types
]
\ No newline at end of file
def
type_ok
(
t
):
if
sum
([
'
Eigen
'
in
x
for
x
in
t
]):
return
have_eigen
(
cache
)
if
sum
([
'
Istl
'
in
x
for
x
in
t
]):
return
have_istl
(
cache
)
return
True
testtypes
=
[
test_tuple
(
item
)
for
item
in
types
if
type_ok
(
item
)]
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