Skip to content

Commit

Permalink
Merge 270ec2b into 9acd841
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 1, 2019
2 parents 9acd841 + 270ec2b commit 528bd27
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/systems/diffeqs/diffeqsystem.jl
Expand Up @@ -97,13 +97,21 @@ function ODESystem(eqs)

ODESystem(deqs, iv, dvs, ps)
end
function ODESystem(deqs, iv, dvs, ps)

function ODESystem(deqs::AbstractVector{DiffEq}, iv, dvs, ps)
jac = RefValue(Matrix{Expression}(undef, 0, 0))
Wfact = RefValue(Matrix{Expression}(undef, 0, 0))
Wfact_t = RefValue(Matrix{Expression}(undef, 0, 0))
ODESystem(deqs, iv, dvs, ps, jac, Wfact, Wfact_t)
end

function ODESystem(deqs::AbstractVector{<:Equation}, iv, dvs, ps)
_dvs = [deq.op for deq dvs]
_iv = iv.op
_ps = [p.op for p ps]
ODESystem(getindex.(to_diffeq.(deqs),2), _iv, _dvs, _ps)
end

function _eq_unordered(a, b)
length(a) === length(b) || return false
n = length(a)
Expand Down Expand Up @@ -244,7 +252,7 @@ function DiffEqBase.ODEFunction{iip}(sys::ODESystem, dvs, ps,
Wfact_f_safe = nothing
Wfact_f_t_safe = nothing
Wfact_f = nothing
Wfact_t_f = nothing
Wfact_f_t = nothing
end

if safe === Val{true}
Expand Down

0 comments on commit 528bd27

Please sign in to comment.