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

Only rebuild the CirculantPC blocks when the reference state has changed #186

Merged
merged 2 commits into from
May 7, 2024

Conversation

JHopeCollins
Copy link
Member

@JHopeCollins JHopeCollins commented Apr 26, 2024

The blocks of the circulant or jacobi preconditioners only need to be rebuilt when the reference state is updated. However by default, Firedrake will force the Jacobian and preconditioner to be rebuilt at every LinearVariationalSolver.solve call.

We can prevent this by setting constant_jacobian=True and explicitly telling the blocks when they need to rebuild.

@JHopeCollins JHopeCollins added the performance Improving or fixing the computational performance label Apr 26, 2024
@JHopeCollins JHopeCollins self-assigned this Apr 26, 2024
@JHopeCollins JHopeCollins merged commit 9f43f62 into master May 7, 2024
1 check passed
@JHopeCollins JHopeCollins deleted the circulant_block_rebuilds branch May 7, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Improving or fixing the computational performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants