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

Implement an iterative Poisson solver #69

Draft
wants to merge 53 commits into
base: main
Choose a base branch
from

Conversation

pbartholomew08
Copy link
Member

This is based off the Poisson branch #32 and adds the interface to PETSc as an alternative Poisson solver.

semi-h and others added 30 commits February 19, 2024 11:46
@pbartholomew08 pbartholomew08 self-assigned this Mar 5, 2024
@pbartholomew08 pbartholomew08 linked an issue Mar 5, 2024 that may be closed by this pull request
@pbartholomew08
Copy link
Member Author

Note this currently appears as a larger change due to changes in the main/FFT Poisson branch, once merged into main this PR should appear smaller.

@pbartholomew08
Copy link
Member Author

Currently the m_poisson_cg module is PETSc dependent, building this will require PETSc. This is only to get the basic structure outlined, after this I will lift this into a submodule (cf omp/cuda backends) to remove the hard dependency.

Computing the action of the Laplacian should be handled by the
discretisation backends, the iterative solver implementation just
needs to handle packing/unpacking data into this.
@semi-h
Copy link
Member

semi-h commented Mar 5, 2024

I hope the last bit of changes in #32 didn't cause merge conflicts here. I think we can merge #32 tomorrow so it'll be easier to review this.

@pbartholomew08
Copy link
Member Author

I hope the last bit of changes in #32 didn't cause merge conflicts here. I think we can merge #32 tomorrow so it'll be easier to review this.

No problem, this is still very WIP, I've been basing this off #32 and trying to pull in updates to main too - so I think once it is merged they will either go away or be easy to resolve. Most of the changes shown here come from #32 I think anyway.

@pbartholomew08
Copy link
Member Author

Merge conflicts resolved :)

@pbartholomew08 pbartholomew08 force-pushed the 44-poisson-solver-iterative-solver branch from 0a4dfb8 to 332cf8e Compare April 2, 2024 10:13
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.

Poisson solver (iterative solver)
2 participants