Skip to content

Commit

Permalink
array bounds debug
Browse files Browse the repository at this point in the history
  • Loading branch information
coraallensavietta committed Apr 28, 2020
1 parent adddc97 commit e4b057a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/phyLiNCoptimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,9 @@ function addhybridedgeLiNC!(obj::SSM, currLik::Float64, maxhybrid::Int,
# fixroot=true: to restore edge2 if need be, with deletehybridedge!
isnothing(result) && return nothing
newhybridnode, newhybridedge = result
if maximum([e.number for e in obj.net.edge]) > size(obj.logtrans)[3]
@debug "The new hybrid edge number is greater than the allowed maxedge in logtrans"
end
# unzip only at new node and its child edge
unzipat_canonical!(newhybridnode, getChildEdge(newhybridnode))
updateSSM!(obj, true; constraints=constraints)
Expand Down

0 comments on commit e4b057a

Please sign in to comment.