Skip to content

Commit

Permalink
fixed species roots atrandomly resolvd multifurcations, but only fixe…
Browse files Browse the repository at this point in the history
…d for --ml so far
  • Loading branch information
lutteropp committed Jul 4, 2020
1 parent 3fd12fb commit b831c9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ static void dp_recurse(rtree_t * node, long method)
/* if at least one of the two entries is not valid/filled, skip */
if (!v_vec[j].filled || !w_vec[k].filled) continue;

/* Fix species roots at randomlyresolved multifurcations */
if (node->left->length == 0 && node->left->left && v_vec[j].species_count == 1) continue;
if (node->right->length == 0 && node->right->left && w_vec[k].species_count == 1) continue;

int i = j + k + u_edge_count;

/* set the number of species */
Expand Down

0 comments on commit b831c9c

Please sign in to comment.