Skip to content

Commit 93fae3e

Browse files
committed
Fix bug
1 parent b48fb0f commit 93fae3e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

highs/ipm/hipo/factorhighs/Analyse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ void Analyse::findTreeSplitting() {
13761376

13771377
} else if (sn_parent_[sn] == -1) {
13781378
// sn is small root: single task with whole subtree
1379-
NodeData& data = tree_splitting_.insert(sn);
1379+
NodeData& data = tree_splitting_.insertSubtree(sn);
13801380
data.group.push_back(sn);
13811381
data.firstdesc.push_back(first_desc[sn]);
13821382
}

highs/ipm/hipo/factorhighs/TreeSplitting.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ class TreeSplitting {
2929
// structure. Avoids too many lookups into the map.
3030
std::vector<bool> belong_;
3131

32+
private:
33+
NodeData& insert(Int sn);
34+
3235
public:
3336
void resize(Int sn_count);
3437

35-
NodeData& insert(Int sn);
3638
NodeData& insertSingle(Int sn);
3739
NodeData& insertSubtree(Int sn);
3840

@@ -66,7 +68,7 @@ class TreeSplitting {
6668
// - When d is ran, nothing happens, since it was already executed as part of
6769
// the task that executed a.
6870
// - When e is ran, a task is executed that executes the whole subtree of nodes
69-
// e and f.
71+
// e and g.
7072
// - When f is ran, a task is created that executes only that supernode.
7173
// - When g is ran, nothing happens, since it was already executed as part of
7274
// the task that executed e.

0 commit comments

Comments
 (0)