Check PETSc errors and validate BC assembly#4249
Closed
masaqif wants to merge 1 commit into
Closed
Conversation
eb7ae34 to
610ad1f
Compare
Add PETSc/SLEPc error checking in solver and linear algebra wrappers. Reject unsupported DirichletBC use for bilinear forms with different trial and test spaces, with MatrixCSR and PETSc regression coverage. Move the ADIOS2 availability check before importing VTXWriter in the optional test.
610ad1f to
30fa1ef
Compare
Member
|
Thanks! Looks good, but: PETSc errors are already being handled at #4160 where there are some remaining issues. Please open the other two fixes as separate PRs for easier review and tracking. |
jhale
reviewed
Jun 30, 2026
| Vec x) | ||
| { | ||
| VecAXPY(x, -solver.relaxation_parameter, dx); | ||
| check_petsc_error(VecAXPY(x, -solver.relaxation_parameter, dx), "VecAXPY"); |
Member
There was a problem hiding this comment.
This is a new third style of checking PETSc errors which is not needed; in the other PR we've agreed to use CHECK_ERROR macro on the returned ierr.
This was referenced Jun 30, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Related issues: #3995, #3988, #4045.
Testing: