Skip to content

Commit 84a897c

Browse files
authored
Update abstractodesystem.jl
1 parent 3149f77 commit 84a897c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ function ODEFunctionExpr{iip}(sys::AbstractODESystem, dvs = states(sys),
556556
syms = $(Symbol.(states(sys))),
557557
indepsym = $(QuoteNode(Symbol(get_iv(sys)))),
558558
paramsyms = $(Symbol.(parameters(sys))),
559-
sparsity = $(jacobian_sparsity(sys)))
559+
sparsity = $sparsity ? $(jacobian_sparsity(sys)) : $nothing)
560560
end
561561
!linenumbers ? striplines(ex) : ex
562562
end

0 commit comments

Comments
 (0)