spectrum slicing slepc4py issue: No method getinertia for Mat of type seqaij #3810
-
I am trying to solve an eigenvalue problem on unit interval using the spectrum slicing. But I got the following errors:
The setup of the eigen solver is as followings:
If I replaced the spectrum slicing by finding the eigenvalues closest to a target, then everything works well. So, I guess the main issue is about " No method getinertia for Mat of type seqaij". Any helps are appreciated! Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It looks like only symmetric matrix types are supported for that operation: https://petsc.org/release/manualpages/Mat/MatGetInertia/ You could try running |
Beta Was this translation helpful? Give feedback.
-
I don't know why, but if I do the following (convert MAT to 'mpisbaij'), it works well:
|
Beta Was this translation helpful? Give feedback.
I don't know why, but if I do the following (convert MAT to 'mpisbaij'), it works well: