CSR matrix and docs for PETSc extension#949
Merged
Merged
Conversation
Contributor
Author
|
I have added a doc entry because I think it is mostly usable now. What's missing is MPI support. I may give it a try at some point. |
Contributor
Author
|
I believe Test failures are unrelated to this PR |
5 tasks
ChrisRackauckas
approved these changes
Apr 10, 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.
Following #894, I have added support for CSR matrices using SparseMatricesCSR.jl as PETSc uses this format by default. I took some inspirations from GridapPETSc.jl as SparseMatricesCSR.jl was also designed for this package I believe.
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
It brings about a 10% speedup in general for large problem (tested from 1000 to 10000 unknowns) compared to CSC format because there is no need to convert from one format to the other.
So things like that work:
The PR also simplifies some things for the CSC case and fix PETSc version to 0.4.8 because of an important bug fix in PETSc.jl.
Done with Claude's help.