Skip to content

Cleanup mesh intersection#281

Open
jacobmerson wants to merge 65 commits intoSCOREC:developfrom
jacobmerson:cleanup-mesh-intersection
Open

Cleanup mesh intersection#281
jacobmerson wants to merge 65 commits intoSCOREC:developfrom
jacobmerson:cleanup-mesh-intersection

Conversation

@jacobmerson
Copy link
Collaborator

This PR is an extension of #209. I refactored Abhiyan's code to get it closer to a state that we can merge.

@abhiyan123 if you would rather merge this and work off of your PR. I'm fine with that, I just want to get the first pass at mesh_intersections in quickly.

@jacobmerson
Copy link
Collaborator Author

jacobmerson commented Mar 9, 2026

@Sichao25 you may want to wait until @abhiyan123 indicates if he will merge these changes back to #209 or not to do the review. Once he indicates his preference I'd like to move quickly to get this finalized.

There is still a lot of cleanup that could and maybe should be done to better decouple components. My strategy was to try to at least:

  1. move all non-templated functions out of headers
  2. factor out complex code that was repeated multiple times

The error handling bits of this are still a mess, but the PR is already big enough as is. We will have to take a pass at resolving the error handling mismatch when we fix the exceptions in the rest of the library. For the petsc errors, we can utilze the macro/exception type I previously implemented for MuMFiM.

It looks like using PkgConfig for the petsc configuration broke the CI build...In my personal builds I've had better luck with the PkgConfig based targets, but we'll need to double check if there is an easy way to fix the CI for this.

This adds the private libs to the petsc link line. It *should* work even
if petsc built as a shared library.
@jacobmerson
Copy link
Collaborator Author

The issue with the PkgConfig based petsc installation here is that the Petsc target only seems to behave nicely when petsc is build in shared library mode.

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