From 738de752804fb7343b20b593158bbd0a09119c25 Mon Sep 17 00:00:00 2001 From: Benedict Geihe Date: Tue, 12 Mar 2024 14:50:21 +0100 Subject: [PATCH] reset n_boundaries_per_direction --- src/solvers/dgsem_tree/containers_2d.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/solvers/dgsem_tree/containers_2d.jl b/src/solvers/dgsem_tree/containers_2d.jl index 4bfbddead9a..7048739a226 100644 --- a/src/solvers/dgsem_tree/containers_2d.jl +++ b/src/solvers/dgsem_tree/containers_2d.jl @@ -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