Skip to content

Commit

Permalink
added warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
esseivaju committed Sep 19, 2024
1 parent 083ba80 commit 87c16ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/orange/orangeinp/detail/CsgUnitBuilder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ void CsgUnitBuilder::simplifiy_joins()
md[equivalent_node.unchecked_get()] = unit_->metadata[node_id];
regions[equivalent_node] = unit_->regions[NodeId{node_id}];
}
else if (unit_->regions.find(NodeId{node_id}) != unit_->regions.end()
|| !unit_->metadata[node_id].empty())
{
CELER_LOG(warning)
<< "While simplifying node '" << node_id
<< "': has metadata or region but no equivalent node";
}
}
unit_->metadata = std::move(md);
unit_->regions = std::move(regions);
Expand Down

0 comments on commit 87c16ce

Please sign in to comment.