From f24ee155f27e20ffb090dc06df684f83caad867b Mon Sep 17 00:00:00 2001 From: GregorySchwing Date: Wed, 11 Aug 2021 22:46:33 -0500 Subject: [PATCH] converted the checker to debug mode only --- simpleParallel/Graph.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/simpleParallel/Graph.cpp b/simpleParallel/Graph.cpp index a59ebc4..4fcb8c5 100644 --- a/simpleParallel/Graph.cpp +++ b/simpleParallel/Graph.cpp @@ -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;