Skip to content

Commit

Permalink
Merge pull request #18 from utkarsh530/saveathandling
Browse files Browse the repository at this point in the history
Change saveat handling similar to DiffEq
  • Loading branch information
ChrisRackauckas authored May 14, 2020
2 parents f54deb2 + 59d5fe8 commit 43579fd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MATLABDiffEq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ function DiffEqBase.__solve(
f = prob.f
u0 = prob.u0

tspan = sort(unique([prob.tspan[1];saveat;prob.tspan[2]]))
if typeof(saveat) <: Number
tspan = Array(prob.tspan[1]:saveat:prob.tspan[2])
tspan = sort(unique([prob.tspan[1];tspan;prob.tspan[2]]))
else
tspan = sort(unique([prob.tspan[1];saveat;prob.tspan[2]]))
end

sizeu = size(prob.u0)

Expand Down

0 comments on commit 43579fd

Please sign in to comment.