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
566ed10f
Commit
566ed10f
authored
10 years ago
by
Anton Akhmerov
Browse files
Options
Downloads
Patches
Plain Diff
make umfpack work in scipy 0.14.0
parent
707bfa20
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/sparse.py
+9
-2
9 additions, 2 deletions
kwant/solvers/sparse.py
with
9 additions
and
2 deletions
kwant/solvers/sparse.py
+
9
−
2
View file @
566ed10f
...
...
@@ -15,10 +15,17 @@ from . import common
# Note: previous code would have failed if UMFPACK was provided by scikit
import
scipy.sparse.linalg.dsolve.linsolve
as
linsolve
umfpack
=
linsolve
.
umfpack
uses_umfpack
=
linsolve
.
isUmfpack
# check if we are actually using UMFPACK or rather SuperLU
# TODO: remove the try (only using the except clause) once we depend on
# scipy >= 0.14.0.
try
:
uses_umfpack
=
linsolve
.
isUmfpack
except
AttributeError
:
uses_umfpack
=
linsolve
.
useUmfpack
if
uses_umfpack
:
umfpack
=
linsolve
.
umfpack
if
uses_umfpack
:
# This patches a memory leak in SciPy:
...
...
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