Skip to content

Commit

Permalink
fixup GMRES
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Jan 23, 2024
1 parent 0ca3dee commit cb9871d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygradflow/step/linear_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def solve(self, rhs: ndarray, trans=False, initial_sol=None) -> ndarray:
if initial_sol is not None:
initial_sol = initial_sol()

result = sp.sparse.linalg.gmres(mat, rhs, x0=initial_sol, atol=0.0)
result = sp.sparse.linalg.gmres(mat, rhs, x0=initial_sol, atol=1e-8)

(sol, info) = result

Expand Down

0 comments on commit cb9871d

Please sign in to comment.