Skip to content

Commit 9c3cee8

Browse files
committed
omp parallel position fix
1 parent b388607 commit 9c3cee8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/clustering/ClusteringAlgorithms.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -337,26 +337,26 @@ void ClusteringAlgorithms::greedyIncrementalLowMem( unsigned int *assignedcluste
337337

338338
buffer[i - start].first = i;
339339
}
340+
}
340341

341-
// Sequential processing of the buffer
342-
for (long j = 0; j < (end - start); j++) {
343-
unsigned int clusterId = buffer[j].first;
344-
const std::vector<unsigned int>& keys = buffer[j].second;
342+
// Sequential processing of the buffer
343+
for (long j = 0; j < (end - start); j++) {
344+
unsigned int clusterId = buffer[j].first;
345+
const std::vector<unsigned int>& keys = buffer[j].second;
345346

346-
if (assignedcluster[clusterId] != UINT_MAX) {
347-
continue;
348-
}
347+
if (assignedcluster[clusterId] != UINT_MAX) {
348+
continue;
349+
}
349350

350-
if (keys.size() <= 1) {
351-
continue;
352-
}
351+
if (keys.size() <= 1) {
352+
continue;
353+
}
353354

354-
for (unsigned int key : keys) {
355-
unsigned int currElement = seqDbr->getId(key);
355+
for (unsigned int key : keys) {
356+
unsigned int currElement = seqDbr->getId(key);
356357

357-
if (assignedcluster[currElement] == UINT_MAX) {
358-
assignedcluster[currElement] = clusterId;
359-
}
358+
if (assignedcluster[currElement] == UINT_MAX) {
359+
assignedcluster[currElement] = clusterId;
360360
}
361361
}
362362
}

0 commit comments

Comments
 (0)