blob: 0510be9f90efe25eae0a88b4ef1ef27bdf6b5daa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
Index: ColPack-1.0.9/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
===================================================================
--- ColPack-1.0.9.orig/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
+++ ColPack-1.0.9/BipartiteGraphPartialColoring/BipartiteGraphPartialColoring.cpp
@@ -388,8 +388,9 @@ namespace ColPack
if ( m_vi_LeftVertexColors [m_vi_Edges [x]] == m_vi_LeftVertexColors[v] && f(v) > f(m_vi_Edges [x]) ) {
//Algo 4 - Line 18: add [v] to R ; cont <- false; break
#pragma omp critical
+ {
vi_verticesNeedNewColor.push_back(v);
-#pragma omp end critical
+ }
cont = false;
break;
}
@@ -575,8 +576,9 @@ namespace ColPack
if ( m_vi_RightVertexColors [m_vi_Edges [x]] == m_vi_RightVertexColors[v] && f(v) > f(m_vi_Edges [x]) ) {
//Algo 4 - Line 18: add [v] to R ; cont <- false; break
#pragma omp critical
+ {
vi_verticesNeedNewColor.push_back(v);
-#pragma omp end critical
+ }
cont = false;
break;
}
|