Skip to content
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

Linalg improvements #276

Merged
merged 5 commits into from
Dec 29, 2023
Merged

Linalg improvements #276

merged 5 commits into from
Dec 29, 2023

Conversation

kburns
Copy link
Member

@kburns kburns commented Dec 22, 2023

This PR includes some improvements to linear algebra using cython routines.

@kburns kburns marked this pull request as ready for review December 23, 2023 14:19
@kburns
Copy link
Member Author

kburns commented Dec 23, 2023

For 2D RBC at (Nx, Nz) = (256, 512), this speeds things up by about 5%, and for 3D HOT at 256^3 it speeds things up by about 4%. Bigger differences on other more anisotropic simulations where inverse Jacobi added a lot.

@kburns
Copy link
Member Author

kburns commented Dec 23, 2023

The old behavior, if desired, is available through the OLD_CSR_MATVECS config option.

@kburns kburns merged commit fe693f0 into master Dec 29, 2023
4 checks passed
@kburns kburns deleted the performance branch December 29, 2023 00:35
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.

1 participant