Skip to content
Snippets Groups Projects
Commit 8b75021c authored by Christoph Groth's avatar Christoph Groth
Browse files

fix failing test with OpenBLAS

parent 3d739054
No related branches found
No related tags found
No related merge requests found
......@@ -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 (Squeeze) 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 (Wheezy) 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
--------
......
......@@ -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=[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment