Skip to content

Commit

Permalink
Add node_names and others to ImmersedBoundaryGrid (#3746)
Browse files Browse the repository at this point in the history
  • Loading branch information
glwagner authored Aug 28, 2024
1 parent 93cf3e9 commit 5a3d3c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ImmersedBoundaries/ImmersedBoundaries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import Oceananigans.Grids: cpu_face_constructor_x, cpu_face_constructor_y, cpu_
import Oceananigans.Grids: architecture, on_architecture, with_halo, inflate_halo_size_one_dimension,
xnode, ynode, znode, λnode, φnode, node,
ξnode, ηnode, rnode,
ξname, ηname, rname, node_names,
xnodes, ynodes, znodes, λnodes, φnodes, nodes,
inactive_cell

Expand Down Expand Up @@ -272,6 +273,11 @@ znodes(ibg::IBG, loc; kwargs...) = znodes(ibg.underlying_grid, loc; kwargs...)
@inline cpu_face_constructor_y(ibg::IBG) = cpu_face_constructor_y(ibg.underlying_grid)
@inline cpu_face_constructor_z(ibg::IBG) = cpu_face_constructor_z(ibg.underlying_grid)

node_names(ibg::IBG, ℓx, ℓy, ℓz) = node_names(ibg.underlying_grid, ℓx, ℓy, ℓz)
ξname(ibg::IBG) = ξname(ibg.underlying_grid)
ηname(ibg::IBG) = ηname(ibg.underlying_grid)
rname(ibg::IBG) = rname(ibg.underlying_grid)

function on_architecture(arch, ibg::IBG)
underlying_grid = on_architecture(arch, ibg.underlying_grid)
immersed_boundary = on_architecture(arch, ibg.immersed_boundary)
Expand Down

0 comments on commit 5a3d3c9

Please sign in to comment.