Skip to content

Commit

Permalink
Revert "fix bug gmres (#452)"
Browse files Browse the repository at this point in the history
This reverts commit 74c1271.
  • Loading branch information
campospinto authored Jan 22, 2025
1 parent 74c1271 commit a2f58a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions psydac/linalg/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ def solve(self, b, out=None):
pp += rp

# new residual norm
res_sqr = r.dot(r).real
res_sqr = r.dot(r)

niter += 1

Expand Down Expand Up @@ -1804,10 +1804,6 @@ def solve(self, b, out=None):
r -= b

am = sqrt(r.dot(r).real)
if am < tol:
self._info = {'niter': 1, 'success': am < tol, 'res_norm': am }
return x

beta.append(am)
r *= - 1 / am

Expand Down

0 comments on commit a2f58a4

Please sign in to comment.