Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeMesh 2D simulation with MPI crashes when a rank has no boundaries #1870

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
benegee marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
Loading