Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
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
Anton Akhmerov
kwant
Commits
c7f53956
Commit
c7f53956
authored
12 years ago
by
Michael Wimmer
Committed by
Christoph Groth
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make MUMPS tests use proper default values in the beginning
parent
54535873
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kwant/solvers/tests/test_mumps.py
+12
-1
12 additions, 1 deletion
kwant/solvers/tests/test_mumps.py
with
12 additions
and
1 deletion
kwant/solvers/tests/test_mumps.py
+
12
−
1
View file @
c7f53956
from
nose.plugins.skip
import
Skip
,
SkipTest
from
numpy.testing.decorators
import
skipif
try
:
from
kwant.solvers.mumps
import
solve
,
ldos
,
options
from
kwant.solvers.mumps
import
solve
,
ldos
,
options
,
reset_options
import
_test_sparse
_no_mumps
=
False
except
ImportError
:
...
...
@@ -19,6 +19,7 @@ opt_list=[{},
@skipif
(
_no_mumps
)
def
test_output
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_output
(
solve
)
...
...
@@ -26,6 +27,7 @@ def test_output():
@skipif
(
_no_mumps
)
def
test_one_lead
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_one_lead
(
solve
)
...
...
@@ -33,6 +35,7 @@ def test_one_lead():
@skipif
(
_no_mumps
)
def
test_smatrix_shape
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_smatrix_shape
(
solve
)
...
...
@@ -40,12 +43,14 @@ def test_smatrix_shape():
@skipif
(
_no_mumps
)
def
test_two_equal_leads
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_two_equal_leads
(
solve
)
@skipif
(
_no_mumps
)
def
test_graph_system
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_graph_system
(
solve
)
...
...
@@ -53,6 +58,7 @@ def test_graph_system():
@skipif
(
_no_mumps
)
def
test_singular_graph_system
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_singular_graph_system
(
solve
)
...
...
@@ -60,6 +66,7 @@ def test_singular_graph_system():
@skipif
(
_no_mumps
)
def
test_tricky_singular_hopping
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_tricky_singular_hopping
(
solve
)
...
...
@@ -67,6 +74,7 @@ def test_tricky_singular_hopping():
@skipif
(
_no_mumps
)
def
test_self_energy
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_self_energy
(
solve
)
...
...
@@ -74,6 +82,7 @@ def test_self_energy():
@skipif
(
_no_mumps
)
def
test_self_energy_reflection
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_self_energy_reflection
(
solve
)
...
...
@@ -81,6 +90,7 @@ def test_self_energy_reflection():
@skipif
(
_no_mumps
)
def
test_very_singular_leads
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_very_singular_leads
(
solve
)
...
...
@@ -88,5 +98,6 @@ def test_very_singular_leads():
@skipif
(
_no_mumps
)
def
test_ldos
():
for
opts
in
opt_list
:
reset_options
()
options
(
**
opts
)
_test_sparse
.
test_ldos
(
ldos
)
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