Skip to content

Commit

Permalink
flush iterates
Browse files Browse the repository at this point in the history
  • Loading branch information
JSchoeberl committed Dec 31, 2022
1 parent 819b0d3 commit 49ed3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/eigenvalues.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def LOBPCG(mata, matm, pre, num=1, maxit=20, initial=None, printrates=True):
ev,evec = scipy.linalg.eigh(a=asmall, b=msmall)
lams = Vector(ev[0:num])
if printrates:
print (i, ":", list(lams))
print (i, ":", list(lams), flush=True)

uvecs[:] = vecs * Matrix(evec[:,0:num])
vecs[num:2*num] = vecs[0:num]
Expand Down

0 comments on commit 49ed3f0

Please sign in to comment.