Skip to content

Commit

Permalink
Merge branch 'main' into branch_vaf_mask
Browse files Browse the repository at this point in the history
  • Loading branch information
dngoldberg committed May 26, 2024
2 parents d4ff400 + 66f0062 commit 3f2c6ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fenics_ice/eigendecomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ def eigendecompose(space, A_action, B_matrix=None, N_eigenvalues=None,
raise RuntimeError("Error encountered in SLEPc.EPS.solve")
if esolver.getConverged() < N_ev:
raise RuntimeError("Not all requested eigenpairs converged")
if esolver.getConvergedReason() <= 0:
raise RuntimeError("Convergence failure")

return esolver

Expand Down

0 comments on commit 3f2c6ff

Please sign in to comment.