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

Make error message for unknown boundary name more helpful #1762

Merged
Merged
Changes from 1 commit
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
Next Next commit
Make error message for unknown boundary name more helpful
  • Loading branch information
efaulhaber committed Nov 29, 2023
commit 5dcf29e1e6bf485bcb752a9c83379e1bd2a02be9
6 changes: 4 additions & 2 deletions src/solvers/dgsem_unstructured/sort_boundary_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ function initialize!(boundary_types_container::UnstructuredSortedBoundaryTypes{N
for key in keys(boundary_dictionary)
if !(key in all_names)
println(stderr,
"ERROR: Key $(repr(key)) is not a valid boundary name")
"ERROR: Key $(repr(key)) is not a valid boundary name. " *
"Valid names are $all_names.")
MPI.Abort(mpi_comm(), 1)
end
end
Expand All @@ -67,7 +68,8 @@ function initialize!(boundary_types_container::UnstructuredSortedBoundaryTypes{N
else
for key in keys(boundary_dictionary)
if !(key in unique_names)
error("Key $(repr(key)) is not a valid boundary name")
error("Key $(repr(key)) is not a valid boundary name. " *
"Valid names are $unique_names.")
end
end
end
Expand Down