Skip to content

Commit

Permalink
Fix deprecations of binary_minheap and binary_maxheap
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored and ChrisRackauckas committed Jan 10, 2019
1 parent 4d6c832 commit ec76122
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ julia 1.0
BinaryProvider
DiffEqBase 4.29.0
Reexport
DataStructures
DataStructures 0.15.0
8 changes: 4 additions & 4 deletions src/common_interface/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,9 @@ function tstop_saveat_disc_handling(tstops,saveat,tdir,tspan,tType)
end

if tdir>0
tstops_internal = binary_minheap(tstops_vec)
tstops_internal = BinaryMinHeap(tstops_vec)
else
tstops_internal = binary_maxheap(tstops_vec)
tstops_internal = BinaryMaxHeap(tstops_vec)
end

if typeof(saveat) <: Number
Expand All @@ -527,9 +527,9 @@ function tstop_saveat_disc_handling(tstops,saveat,tdir,tspan,tType)
end

if tdir>0
saveat_internal = binary_minheap(saveat_vec)
saveat_internal = BinaryMinHeap(saveat_vec)
else
saveat_internal = binary_maxheap(saveat_vec)
saveat_internal = BinaryMaxHeap(saveat_vec)
end

tstops_internal,saveat_internal
Expand Down

0 comments on commit ec76122

Please sign in to comment.