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
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Michael Wimmer
kwant
Commits
8b75021c
Commit
8b75021c
authored
11 years ago
by
Christoph Groth
Browse files
Options
Downloads
Patches
Plain Diff
fix failing test with OpenBLAS
parent
3d739054
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
INSTALL
+4
-21
4 additions, 21 deletions
INSTALL
kwant/solvers/tests/_test_sparse.py
+1
-1
1 addition, 1 deletion
kwant/solvers/tests/_test_sparse.py
with
5 additions
and
22 deletions
INSTALL
+
4
−
21
View file @
8b75021c
...
...
@@ -222,10 +222,10 @@ Unix-like systems (Linux)
-------------------------
Kwant should run on all recent Unix-like systems. The following instructions
have been verified to work on Debian
6
(
Squ
eez
e
) or newer, and on Ubuntu 12.04
(see :ref:`Note <ubuntu-problem>` below) or newer. For other distributions step
1 will likely have to be adapted. If
Ubuntu-style ``sudo`` is not available,
the respective command must be run as
root.
have been verified to work on Debian
7
(
Wh
eez
y
) or newer, and on Ubuntu 12.04
or
newer. For other distributions step 1 will likely have to be adapted. If
Ubuntu-style ``sudo`` is not available,
the respective command must be run as
root.
1. Install the required packages. On Debian-based systems like Ubuntu this can
be done by running the command ::
...
...
@@ -261,23 +261,6 @@ You can make this setting permanent by adding this line to the file
``.bashrc`` (or equivalent) in your home directory.
.. _ubuntu-problem:
Known problem on Ubuntu 12.04 32-bit (i486)
...........................................
With Ubuntu 12.04 running on 32-bit Intel architecture processors the following
error has been observed when running the tests included with Kwant: "Arrays are
not almost equal to 7 decimals". That problem seems to be due to a bug in the
OpenBLAS package included with that version of Ubuntu. It can be worked-around
by installing a different BLAS. Execute the following shell commands::
sudo apt-get install libblas3gf
sudo update-alternatives --config libblas.so.3gf
and select the "libblas.so.3gf" alternative when prompted by the second command.
Mac OS X
--------
...
...
This diff is collapsed.
Click to expand it.
kwant/solvers/tests/_test_sparse.py
+
1
−
1
View file @
8b75021c
...
...
@@ -63,7 +63,7 @@ def test_output(smatrix):
s2
,
modes2
=
result2
.
data
,
result2
.
lead_info
assert
s2
.
shape
==
(
len
(
modes2
[
1
].
momenta
)
//
2
,
len
(
modes2
[
0
].
momenta
)
//
2
)
assert_almost_equal
(
s1
,
s2
)
assert_almost_equal
(
abs
(
s1
)
,
abs
(
s2
)
)
assert_almost_equal
(
np
.
dot
(
s
.
T
.
conj
(),
s
),
np
.
identity
(
s
.
shape
[
0
]))
assert_raises
(
ValueError
,
smatrix
,
fsys
,
out_leads
=
[])
...
...
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