Skip to content

Commit

Permalink
Improve error message for SPSC inbox insertion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsdeppe committed Sep 12, 2024
1 parent c948beb commit d1f1f13
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/Evolution/DiscontinuousGalerkin/InboxTags.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,17 @@ struct BoundaryCorrectionAndGhostCellsInbox {
if (UNLIKELY(not gsl::at(inbox->boundary_data_in_directions, neighbor_index)
.try_emplace(time_step_id, std::move(data.second),
std::move(data.first)))) {
ERROR("Failed to emplace data into inbox. neighbor_id: ("
<< neighbor_id.direction() << ',' << neighbor_id.id()
<< ") at TimeStepID: " << time_step_id);
ERROR(
"Failed to emplace data into inbox. neighbor_id: ("
<< neighbor_id.direction() << ',' << neighbor_id.id()
<< ") at TimeStepID: " << time_step_id << " the size of the inbox is "
<< gsl::at(inbox->boundary_data_in_directions, neighbor_index).size()
<< " the message count is "
<< gsl::at(inbox->boundary_data_in_directions, neighbor_index)
.message_count.load()
<< " and the number of neighbors is "
<< gsl::at(inbox->boundary_data_in_directions, neighbor_index)
.number_of_neighbors.load());
}
// Notes:
// 1. fetch_add does a post-increment.
Expand Down

0 comments on commit d1f1f13

Please sign in to comment.