Skip to content

Commit

Permalink
Update abstractodesystem.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Oct 21, 2022
1 parent 3149f77 commit 84a897c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ function ODEFunctionExpr{iip}(sys::AbstractODESystem, dvs = states(sys),
syms = $(Symbol.(states(sys))),
indepsym = $(QuoteNode(Symbol(get_iv(sys)))),
paramsyms = $(Symbol.(parameters(sys))),
sparsity = $(jacobian_sparsity(sys)))
sparsity = $sparsity ? $(jacobian_sparsity(sys)) : $nothing)
end
!linenumbers ? striplines(ex) : ex
end
Expand Down

0 comments on commit 84a897c

Please sign in to comment.