|
|
@ -5,7 +5,6 @@ void PROCESS_CROSS_EDGE(vector<MilanLongInt> &Counter,
|
|
|
|
MilanLongInt edge,
|
|
|
|
MilanLongInt edge,
|
|
|
|
MilanLongInt *SPtr)
|
|
|
|
MilanLongInt *SPtr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MilanLongInt S = *SPtr;
|
|
|
|
|
|
|
|
// Decrement the counter:
|
|
|
|
// Decrement the counter:
|
|
|
|
// Start: PARALLEL_PROCESS_CROSS_EDGE_B
|
|
|
|
// Start: PARALLEL_PROCESS_CROSS_EDGE_B
|
|
|
|
if (Counter[Ghost2LocalMap[edge]] > 0)
|
|
|
|
if (Counter[Ghost2LocalMap[edge]] > 0)
|
|
|
@ -13,13 +12,13 @@ void PROCESS_CROSS_EDGE(vector<MilanLongInt> &Counter,
|
|
|
|
Counter[Ghost2LocalMap[edge]] -= 1; // Decrement
|
|
|
|
Counter[Ghost2LocalMap[edge]] -= 1; // Decrement
|
|
|
|
if (Counter[Ghost2LocalMap[edge]] == 0)
|
|
|
|
if (Counter[Ghost2LocalMap[edge]] == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
S--; // Decrement S
|
|
|
|
(*SPtr)--; // Decrement S
|
|
|
|
#ifdef PRINT_DEBUG_INFO_
|
|
|
|
#ifdef PRINT_DEBUG_INFO_
|
|
|
|
cout << "\n(" << myRank << ")Decrementing S: Ghost vertex " << edge << " has received all its messages";
|
|
|
|
cout << "\n(" << myRank << ")Decrementing S: Ghost vertex " << edge << " has received all its messages";
|
|
|
|
fflush(stdout);
|
|
|
|
fflush(stdout);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // End of if Counter[edge] > 0
|
|
|
|
} // End of if Counter[edge] > 0
|
|
|
|
// End: PARALLEL_PROCESS_CROSS_EDGE_B
|
|
|
|
// End: PARALLEL_PROCESS_CROSS_EDGE_B
|
|
|
|
*SPtr = S;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|