Skip to content

Commit ec01213

Browse files
committed
Remove function processSubtree
1 parent c5265e8 commit ec01213

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

highs/ipm/hipo/factorhighs/Factorise.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,6 @@ void Factorise::processSupernode(Int sn, bool parallelise) {
373373
#endif
374374
}
375375

376-
void Factorise::processSubtree(Int start, Int end) {
377-
for (Int sn = start; sn < end; ++sn) {
378-
processSupernode(sn, false);
379-
}
380-
}
381-
382376
bool Factorise::spawnNode(Int sn, const TaskGroupSpecial& tg) {
383377
auto it = S_.treeSplitting().find(sn);
384378

@@ -396,7 +390,11 @@ bool Factorise::spawnNode(Int sn, const TaskGroupSpecial& tg) {
396390
// sn is subtree, spawn the whole subtree
397391
Int start = it->second.first;
398392
Int end = sn + 1;
399-
tg.spawn([=]() { processSubtree(start, end); });
393+
tg.spawn([=]() {
394+
for (Int sn = start; sn < end; ++sn) {
395+
processSupernode(sn, false);
396+
}
397+
});
400398
}
401399

402400
return false;

highs/ipm/hipo/factorhighs/Factorise.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class Factorise {
7575
public:
7676
void permute(const std::vector<Int>& iperm);
7777
void processSupernode(Int sn, bool parallelise);
78-
void processSubtree(Int start, Int end);
7978
bool spawnNode(Int sn, const TaskGroupSpecial& tg);
8079

8180
public:

0 commit comments

Comments
 (0)