Skip to content

Commit

Permalink
converted the checker to debug mode only
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorySchwing committed Aug 12, 2021
1 parent e4ad65c commit f24ee15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions simpleParallel/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,17 @@ void Graph::removeVertex(int vertexToRemove){
vertexToRemove);

if(!hasntBeenRemoved[vertexToRemove]){
#ifndef NDEBUG
if (verticesRemaining[low - std::begin(verticesRemaining)] != vertexToRemove ||
low == std::end(verticesRemaining))
return;
else
std::cout << "Error! Disagreement between verticesRemaining and hasntBeenRemoved!"
<< std::endl;
#else
return;
#endif

} else
hasntBeenRemoved[vertexToRemove] = 0;

Expand Down

0 comments on commit f24ee15

Please sign in to comment.