Skip to content

Commit 3d31be9

Browse files
committed
Fix setting curScore in testRootPosition
1 parent 6ee97a4 commit 3d31be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tree/phylotree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2960,7 +2960,7 @@ double PhyloTree::testRootPosition(bool write_info, double logl_epsilon, IntVect
29602960
// optimize branch lengths for all trees
29612961
for (i = 0; i != trees.size(); i++) {
29622962
readTreeString(trees[i]);
2963-
optimizeAllBranches(100, logl_epsilon);
2963+
setCurScore(optimizeAllBranches(100, logl_epsilon));
29642964
stringstream ss;
29652965
printTree(ss);
29662966
logl_trees.insert({curScore, make_pair(branch_ids[i], ss.str())});

0 commit comments

Comments
 (0)