Skip to content

Commit

Permalink
Add kwargs propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
utkinis committed Feb 7, 2024
1 parent 43c6040 commit ca7ca80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions examples/distributed_boundary_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ fill!(parent(field), NaN)

set!(field, global_rank(topo))

bt = batch(arch, grid, field => Neumann(); replace=true)

bc!(arch, grid, bt)
bc!(arch, grid, field => Neumann(); replace=true)

KernelAbstractions.synchronize(backend(arch))

Expand Down
2 changes: 1 addition & 1 deletion src/BoundaryConditions/batch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ end
end
end

bc!(arch::Architecture, grid::SG, f_bc::Vararg{FieldAndBC}) = bc!(arch, grid, batch(arch, grid, f_bc...))
bc!(arch::Architecture, grid::SG, f_bc::Vararg{FieldAndBC}; kwargs...) = bc!(arch, grid, batch(arch, grid, f_bc...; kwargs...))

# batched kernels
@kernel function bc_kernel!(side::Val, dim::Val, grid::SG{N}, batch::FieldBatch{K}) where {N,K}
Expand Down

0 comments on commit ca7ca80

Please sign in to comment.