Skip to content

Commit

Permalink
reset n_boundaries_per_direction
Browse files Browse the repository at this point in the history
  • Loading branch information
benegee committed Mar 12, 2024
1 parent f235619 commit 738de75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/solvers/dgsem_tree/containers_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ end
function init_boundaries!(boundaries, elements, mesh::TreeMesh2D)
# Exit early if there are no boundaries to initialize
if nboundaries(boundaries) == 0
# In this case n_boundaries_per_direction still needs to be reset!
boundaries.n_boundaries_per_direction = SVector(0, 0, 0, 0)
return nothing
end

Expand Down

0 comments on commit 738de75

Please sign in to comment.