]> git.donarmstrong.com Git - mothur.git/blobdiff - tree.cpp
modified trim.seqs to speed up the append with multiple processors
[mothur.git] / tree.cpp
index 114b4de0d6e2c408479ae8c03b65d2b1300bb9b8..c67f03d8f064f6699c192e62184df6763576b113 100644 (file)
--- a/tree.cpp
+++ b/tree.cpp
@@ -420,6 +420,10 @@ int Tree::populateNewTree(vector<Node>& oldtree, int node, int& index) {
                        tree[rc].setParent(index);
                        tree[lc].setParent(index);
                        
+                       tree[index].setBranchLength(oldtree[node].getBranchLength());
+                       tree[rc].setBranchLength(oldtree[oldtree[node].getLChild()].getBranchLength());
+                       tree[lc].setBranchLength(oldtree[oldtree[node].getRChild()].getBranchLength());
+                       
                        return (index++);
                }else { //you are a leaf
                        int indexInNewTree = globaldata->gTreemap->getIndex(oldtree[node].getName());