Created
January 19, 2015 16:06
-
-
Save wence-/a9a5b2116c9ae2e90a59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| from slepc4py import SLEPc | |
| A = assemble(a).M.handle | |
| eps = SLEPc.EPS().create() | |
| # eps.setDimensions(nev=10, ncv=100) | |
| # eps.setWhichEigenpairs(eps.Which.SMALLEST_MAGNITUDE) | |
| eps.setOperators(A) | |
| eps.setFromOptions() | |
| eps.solve() | |
| n = eps.getConverged() | |
| for i in range(n): | |
| val = eps.getEigenvalue(i) | |
| print val |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment