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

Open halo filling on Windowed fields #3834

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

simone-silvestri
Copy link
Collaborator

Should close #3833. Probably, we can wait to merge #3792 before this one and add some tests for fill halo regions here

@glwagner
Copy link
Member

glwagner commented Oct 8, 2024

How does this PR address #3833

@simone-silvestri
Copy link
Collaborator Author

There was a missing offset that was preventing filling the open halos for windowed fields correctly

@glwagner
Copy link
Member

glwagner commented Oct 9, 2024

There was a missing offset that was preventing filling the open halos for windowed fields correctly

Put a comment in the code on the key lines to prevent the problem from happening again. This PR only fixes the code but does not address the underlying issue that it's easy to miss the need for that.

Comment on lines +18 to +22
size = fill_halo_size(field, regular_fill, indices, boundary_conditions, loc, grid)
offset = fill_halo_offset(size, regular_fill, indices)
params = KernelParameters(size, offset)

launch!(arch, grid, params, open_fill, field, left_bc, right_bc, loc, grid, args)
Copy link
Member

Choose a reason for hiding this comment

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

It's hard for me to tell how what these changes do so a comment would help.

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.

Open boundary conditions do not work for windowed fields
2 participants