Skip to content

Commit

Permalink
Update scipy.sparse.linalg import: now works again & consistent with …
Browse files Browse the repository at this point in the history
…f1d.
  • Loading branch information
awickert committed Jan 16, 2024
1 parent bd2b283 commit 4657b12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gflex/f2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import numpy as np
import scipy
from scipy.special import kei
from scipy.sparse.linalg import isolve, spsolve

from gflex.base import Flexure

Expand Down Expand Up @@ -1784,7 +1785,7 @@ def fd_solve(self):
self.iterative_ConvergenceTolerance,
"m between iterations",
)
wvector = scipy.sparse.linalg.isolve.lgmres(
wvector = isolve.lgmres(
self.coeff_matrix, q0vector
) # , tol=1E-10)#,x0=woldvector)#,x0=wvector,tol=1E-15)
wvector = wvector[0] # Reach into tuple to get my array back
Expand All @@ -1796,7 +1797,7 @@ def fd_solve(self):
if not self.Quiet:
print("Solution type not understood:")
print("Defaulting to direct solution with UMFpack")
wvector = scipy.sparse.linalg.spsolve(
wvector = spsolve(
self.coeff_matrix, q0vector, use_umfpack=True
)

Expand Down

0 comments on commit 4657b12

Please sign in to comment.