Skip to content

Commit

Permalink
change if statements ("usable" in complex setting)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrLackner committed Jun 3, 2020
1 parent 25e8117 commit bfae991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nonlinearsolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def Solve(self, maxit=100, maxerr=1e-11, dampfactor=1,
w.data = self.inv * r

err2 = InnerProduct(w,r)
if err2 < 0:
if print_wrong_direction:
if print_wrong_direction:
if err2 < 0:
print("wrong direction")
err = sqrt(abs(err2))
if printing:
Expand Down

0 comments on commit bfae991

Please sign in to comment.