Skip to content

Commit

Permalink
reset n_boundaries_per_direction (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
benegee authored Mar 15, 2024
1 parent a528083 commit aa9ea20
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 aa9ea20

Please sign in to comment.