-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error messages from ARPACK. Fixes #13709
- Loading branch information
1 parent
e9cabd3
commit fa006bc
Showing
3 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,18 @@ type LAPACKException <: Exception | |
end | ||
|
||
type ARPACKException <: Exception | ||
info::BlasInt | ||
info::ByteString | ||
end | ||
|
||
function ARPACKException(i::Integer) | ||
if i == -8 | ||
return ARPACKException("error return from calculation of a real Schur form.") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andreasnoack
Author
Member
|
||
elseif i == -9 | ||
return ARPACKException("error return from calculation of eigenvectors.") | ||
elseif i == -14 | ||
return ARPACKException("did not find any eigenvalues to sufficient accuracy. Try with a different starting vector or more Lanczos vectors by increasing the value of ncv.") | ||
end | ||
return ARPACKException("unspecified ARPACK error: $i") | ||
end | ||
|
||
type SingularException <: Exception | ||
|
"error return" isn't very clear here