From f64309ab5d000cc22545e55adb6daae94db4d4c3 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 13 Jul 2018 11:29:54 +0530 Subject: [PATCH] Change save_start to take saveat into consideration --- src/solve.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solve.jl b/src/solve.jl index 127d155..5fb991a 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -4,7 +4,7 @@ function solve{uType,tuptType,isinplace,AlgType<:ODEInterfaceAlgorithm}( timeseries=[],ts=[],ks=[]; saveat = Float64[], verbose=true,save_everystep = isempty(saveat), - save_start=true, + save_start = save_everystep || isempty(saveat) || typeof(saveat) <: Number ? true : prob.tspan[1] in saveat, timeseries_errors=true,dense_errors=false, callback=nothing,kwargs...)