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

Remove fill_halo_regions! specific kwargs from launch! #3922

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

simone-silvestri
Copy link
Collaborator

The only_local_halos and async kwargs are specific to fill halos and in particular they are active only for distributed grids. So in this PR I remove them from launch and move them in the BoundaryConditions module

@simone-silvestri simone-silvestri changed the title Remove fill_halo_regions! specific kwargs form launch! Remove fill_halo_regions! specific kwargs from launch! Nov 13, 2024
Comment on lines +24 to 28
function fill_south_and_north_halo!(c, ::PBCT, ::PBCT, size, offset, loc, arch, grid, args...; only_local_halos = false, kw...)
c_parent, xz_size, offset = parent_size_and_offset(c, 1, 3, size, offset)
launch!(arch, grid, KernelParameters(xz_size, offset), fill_periodic_south_and_north_halo!, c_parent, Val(grid.Hy), grid.Ny; kw...)
return nothing
end
Copy link
Member

Choose a reason for hiding this comment

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

only_local_halos isn't used in the function

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see it's only for distributed

@simone-silvestri simone-silvestri merged commit dd82211 into main Nov 14, 2024
46 checks passed
@simone-silvestri simone-silvestri deleted the ss/remove-kwargs-from-launch branch November 14, 2024 06:58
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