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
Joseph Weston
kwant
Commits
5702c769
Commit
5702c769
authored
10 years ago
by
Anton Akhmerov
Browse files
Options
Downloads
Patches
Plain Diff
update superlu warning
parent
4f725e8c
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
kwant/solvers/default.py
+4
-0
4 additions, 0 deletions
kwant/solvers/default.py
kwant/solvers/sparse.py
+3
-5
3 additions, 5 deletions
kwant/solvers/sparse.py
with
7 additions
and
5 deletions
kwant/solvers/default.py
+
4
−
0
View file @
5702c769
...
...
@@ -9,9 +9,13 @@
__all__
=
[
'
smatrx
'
,
'
ldos
'
,
'
wave_function
'
,
'
greens_function
'
]
# MUMPS usually works best. Use SciPy as fallback.
import
warnings
try
:
from
.
import
mumps
as
smodule
except
ImportError
:
warnings
.
warn
(
"
MUMPS is not available,
"
"
SciPy built-in solver will be used as a fallback.
"
"
Performance can be very poor in this case.
"
,
RuntimeWarning
)
from
.
import
sparse
as
smodule
hidden_instance
=
smodule
.
Solver
()
...
...
This diff is collapsed.
Click to expand it.
kwant/solvers/sparse.py
+
3
−
5
View file @
5702c769
...
...
@@ -88,11 +88,9 @@ if uses_umfpack:
return
solve
else
:
# no UMFPACK found. SuperLU is being used, but usually abysmally slow
# (SuperLu is not bad per se, somehow the SciPy version isn't good)
warnings
.
warn
(
"
The installed SciPy does not use UMFPACK. Instead,
"
"
SciPy will use the version of SuperLu it is shipped with.
"
"
Performance can be very poor in this case.
"
,
RuntimeWarning
)
# (SuperLu is not bad per se, somehow the SciPy version isn't good).
# Since scipy doesn't include UMFPACK anymore due to software rot,
# there is no warning here.
factorized
=
linsolve
.
factorized
...
...
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