Skip to content

Commit

Permalink
krylovschur: set error computation to abs
Browse files Browse the repository at this point in the history
default is relative eigenvalue error, which leads to problems for very stationary generator with eigenvalues around 0
  • Loading branch information
axsk committed Feb 19, 2021
1 parent 3cbe48a commit 4132fc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmdtools/analysis/schur.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def krylovschur(A, n, massmatrix=None, onseperation=DEFAULT_ONSEPERATION, which=
E = SLEPc.EPS().create()
E.setOperators(M)
E.setDimensions(nev=n)
E.setConvergenceTest(E.Conv.ABS)
E.setTolerances(tolerance, maxiter)
if which == "LR":
E.setWhichEigenpairs(E.Which.LARGEST_REAL)
Expand Down

0 comments on commit 4132fc2

Please sign in to comment.