Skip to content

Commit c3b6871

Browse files
committed
Format and add test
1 parent b13e2e8 commit c3b6871

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,7 @@ function DiffEqBase.DAEFunction{iip}(sys::AbstractODESystem, dvs = states(sys),
539539
jac_prototype = jac_prototype,
540540
# missing fields in `DAEFunction`
541541
#indepsym = Symbol(get_iv(sys)),
542-
observed = observedfun,
543-
)
542+
observed = observedfun)
544543
end
545544

546545
"""

test/odesystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ let
605605
@test prob.du0 du0
606606
@test prob.p [1]
607607
sol = solve(prob, IDA())
608+
@test sol[y] 0.9 * sol[x[1]] + sol[x[2]]
608609
@test isapprox(sol[x[1]][end], 1, atol = 1e-3)
609610

610611
prob = DAEProblem(sys, [D(y) => 0, D(x[1]) => 0, D(x[2]) => 0], Pair[x[1] => 0.5],

0 commit comments

Comments
 (0)