Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Grids/abstract_grid.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Oceananigans.Utils: get_active_cells_map

"""
AbstractGrid{FT, TX, TY, TZ}

Expand Down
4 changes: 3 additions & 1 deletion src/Utils/kernel_launching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import Base

struct KernelParameters{S, O} end

get_active_cells_map(grid, any_map_type) = nothing

"""
KernelParameters(size, offsets)
Expand Down Expand Up @@ -247,7 +249,7 @@ the architecture `arch`.
exclude_periphery = false,
reduced_dimensions = (),
location = nothing,
active_cells_map = nothing)
active_cells_map = get_active_cells_map(grid, Val(:interior)))


if !isnothing(active_cells_map) # everything else is irrelevant
Expand Down
Loading