-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tpetra: CsrMatrix structure cannot be changed after first call to fillComplete() #12211
Comments
Things we're apparently allowed to do after
|
Files that may need clarifying updates to documentation and/or comments
|
@kyrillh can you comment on how what you're doing is different than this example in the unit tests of Trilinos/packages/tpetra/core/test/CrsMatrix/CrsMatrix_MultipleFillCompletes.cpp Lines 125 to 132 in 7b858e5
|
I was calling the initial |
Okay, great. We can still improve the documentation to help out with this in the future |
Possibly related: relationship between "static profile" and optimize storage in |
This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity. |
cc: @csiefer2 @searhein
The Tpetra::CrsMatrix documentation says here regarding
resumeFill()
that it "Resume operations that may change the values or structure of the matrix."Accordingly, I assumed that e.g.
insertLocalValues()
could be used after callingresumeFill()
, provided the matrix was not created with a const CrsGraph. However, this is not the case as I found out through multiple error messages. As mentioned in this issue, after the first call tofillComplete()
the matrix structure cannot be changed anymore.It would be great if the documentation clarified that structure-changing functions (e.g.
insertLocalValues()
,doImport()
etc.) can only be used before first callingfillComplete()
and thatresumeFill()
must be used to change matrix entries but not its structure.The text was updated successfully, but these errors were encountered: