Skip to content

Commit

Permalink
hotfix u0 change
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed May 31, 2020
1 parent 34465dc commit a13b48b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DiffEqBase"
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
authors = ["Chris Rackauckas <accounts@chrisrackauckas.com>"]
version = "6.36.1"
version = "6.36.2"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
6 changes: 3 additions & 3 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function get_concrete_problem(prob; kwargs...)
u0 = get_concrete_u0(prob, tspan[1], kwargs)
u0_promote = promote_u0(u0, p, tspan[1])
tspan_promote = promote_tspan(u0, p, tspan, prob, kwargs)
if isconcreteu0(prob, tspan[1], kwargs) && typeof(u0_promote) === typeof(u0) &&
if isconcreteu0(prob, tspan[1], kwargs) && typeof(u0_promote) === typeof(prob.u0) &&
prob.tspan == tspan && typeof(tspan) === typeof(tspan_promote) &&
p == prob.p
return prob
Expand Down Expand Up @@ -229,10 +229,10 @@ end
function __solve(prob::DEProblem,args...;default_set=false,second_time=false,kwargs...)
if second_time
error("""
Default algorithm choices require DifferentialEquations.jl.
Default algorithm choices require DifferentialEquations.jl.
Please specify an algorithm (e.g., `solve(prob, Tsit5())` for an ODE)
or import DifferentialEquations directly.
You can find the list of available solvers at https://docs.sciml.ai/stable/solvers/ode_solve/
and its associated pages.
"""
Expand Down

0 comments on commit a13b48b

Please sign in to comment.