Skip to content

Commit

Permalink
Update Topology.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat authored Aug 31, 2024
1 parent d0eb026 commit c8a997c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/topology/Topology.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ function lazy_grid(
# nodes at the center of the grid cells
xci = ntuple(Val(N)) do i
Base.@_inline_meta
@inbounds LinRange(origin[i] + di[i] / 2, Li[i] + di[i] / 2, ni[i])
@inbounds LinRange(origin[i] + di[i] / 2, origin[i] + Li[i] + di[i] / 2, ni[i])
end

# nodes at the vertices of the grid cells
xvi = ntuple(Val(N)) do i
Base.@_inline_meta
@inbounds LinRange(origin[i], Li[i], ni[i] + 1)
@inbounds LinRange(origin[i], origin[i] + Li[i], ni[i] + 1)
end

return xci, xvi
Expand Down

0 comments on commit c8a997c

Please sign in to comment.