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

Enhance MultiregionGrid with Conditional Halo Extensions and Debugging Capabilities #3596

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

Conversation

siddharthabishnu
Copy link
Contributor

@siddharthabishnu siddharthabishnu commented May 9, 2024

This PR serves as an important step toward integrating the split-explicit free surface with MultiRegionGrid. It introduces an optional parameter, extended_halos, which allows users to control the behavior of halo filling during each substep. Setting extended_halos to false maintains the halo size to be the same as the original grid, diverging from the previous default behavior where extended_halos = true would automatically extend the halo to cover all split-explicit substeps, significantly enhancing computational performance.

Although setting extended_halos to false may be less efficient for long simulations on high-resolutionMultiRegionGrids grids, this feature is helpful for debugging purposes.

Additionally, this PR addresses and resolves a couple of bugs related to the interaction between ImmersedBoundaryGrid and MultiRegionGrid. These modifications ensure that ImmersedBoundaryGrid now correctly wraps over MultiRegionGrid, reversing the prior implementation approach.

With @simone-silvestri and @jm-c.

Comment on lines 156 to 157
fill_halo_regions!(U)
fill_halo_regions!(V)
Copy link
Collaborator

Choose a reason for hiding this comment

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

actually, this would work for multiregion, but I think it would not work for a cubed sphere where we need to fill U and V together

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants