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

dG Dependecies: Mesh Modifiers and Subdivision #474

Open
wants to merge 15 commits into
base: issue-516
Choose a base branch
from

Conversation

int-ptr-ptr
Copy link
Collaborator

@int-ptr-ptr int-ptr-ptr commented Feb 14, 2025

Description

Please describe the changes/features in this pull request.

This PR adds a mesh-modifiers tree to the specfem parameters, as well as its first entry: subdivisions, which allow for modifying specfem::mesh::mesh by subdividing elements corresponding to a specific material. Upon the introduction of LCIs, a mesh-modifiers.coupling entry will allow the user to specify how to resolve interfaces (strongly coupled / loosely coupled, what flux scheme, etc.), but for now, if adjacent materials have nonconforming subdivisions, the code should error out.

Going forward, mesh-modifiers should add a new step to the execute() pipeline, where, after reading in a specfem::mesh:mesh instance, a modifiers.apply(&mesh) call would augment the mesh before being passed into the constructor of specfem::compute::assembly.

Issue Number

If there is an issue created for these changes, link it here

Checklist

*Please make sure to check developer documentation on specfem docs. *

  • I ran the code through pre-commit to check style
  • My code passes all the integration tests
  • I have added sufficient unittests to test my changes
  • I have added/updated documentation for the changes I am proposing
  • I have updated CMakeLists to ensure my code builds
  • My code builds across all platforms

@buildbot-princeton
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@buildbot-princeton
Copy link
Collaborator

Can one of the admins verify this patch?

@buildbot-princeton
Copy link
Collaborator

Can one of the admins verify this patch?

@Rohit-Kakodkar
Copy link
Collaborator

ok to test

@lsawade
Copy link
Collaborator

lsawade commented Feb 24, 2025

Your RTD fix is merged into devel. Can you merge devel into this, please?

@lsawade
Copy link
Collaborator

lsawade commented Feb 24, 2025

Is this working, or work in progress? I'm asking because it looks like everything's there.

If it is working could you add an example to the examples directory? Could be a next PR.

@int-ptr-ptr
Copy link
Collaborator Author

Is this working, or work in progress? I'm asking because it looks like everything's there.

If it is working could you add an example to the examples directory? Could be a next PR.

When I talked with Rohit, he said that this and the other dG PR would probably go into a separate dG branch until it's feature complete enough to go into devel.

@lsawade
Copy link
Collaborator

lsawade commented Feb 26, 2025

When I talked with Rohit, he said that this and the other dG PR would probably go into a separate dG branch until it's feature complete enough to go into devel.

That sounds good to me. You could follow the setup we have for, e.g., the reading of the 3D Mesh, #476 , or Performance optimizations #488

That is you could change the base branch you merge into to #220 for example, unless that one is stale!

Copy link
Collaborator

@lsawade lsawade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops, reviews this a bit ago but forgot to submit the review...

LGTM

@Rohit-Kakodkar Rohit-Kakodkar changed the base branch from devel to issue-516 February 26, 2025 20:52
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.

5 participants