Skip to content

Add TS example ex51#231

Merged
boriskaus merged 10 commits into
JuliaParallel:mainfrom
ranocha:hr/ts
Apr 6, 2026
Merged

Add TS example ex51#231
boriskaus merged 10 commits into
JuliaParallel:mainfrom
ranocha:hr/ts

Conversation

@ranocha
Copy link
Copy Markdown
Collaborator

@ranocha ranocha commented Apr 6, 2026

I wanted to use some time-stepping methods from PETSc.jl since we were asked to use a high-order Gauss method for a paper revision. It turned out that PETSc implements them but only supports sparse Jacobians, while we need a dense Jacobian. Thus, I cannot use PETSc.jl 😢

Nevertheless, I had some code setting up an additional example. Thus, I thought it would be nice to share this in PETSc.jl.

Disclaimer: I used Codex to help me to write some code. I reviewed the code and updated it in several places.

@boriskaus
Copy link
Copy Markdown
Collaborator

Thanks a lot, this is a great addition!

Is it not possible to represent dense arrays in a sparse format? Or is that slow?

@boriskaus boriskaus merged commit 0270ce5 into JuliaParallel:main Apr 6, 2026
5 checks passed
@ranocha ranocha deleted the hr/ts branch April 6, 2026 12:26
@ranocha
Copy link
Copy Markdown
Collaborator Author

ranocha commented Apr 6, 2026

I would have expected to get massive performance problems when trying to represent a dense $$2^8 \times 2^8$$ matrix as a sparse matrix. But I didn't try it out, I have to admit...

@ranocha
Copy link
Copy Markdown
Collaborator Author

ranocha commented Apr 6, 2026

Could you maybe enable only squash-merge to avoid cluttering the history of the main branch?

@boriskaus
Copy link
Copy Markdown
Collaborator

Could you maybe enable only squash-merge to avoid cluttering the history of the main branch?

If you tell me how to do that, sure

@ranocha
Copy link
Copy Markdown
Collaborator Author

ranocha commented Apr 6, 2026

Go to the settings of this repo (likely https://github.com/JuliaParallel/PETSc.jl/settings) and disable the options "Allow merge commits" and "Allow rebase merging" (or give me admin rights so that I can do that).

@boriskaus
Copy link
Copy Markdown
Collaborator

thanks - done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants