Skip to content

Commit 40b6708

Browse files
author
Lucas Morton
committed
Propagate 'check' flag.
1 parent 1c1cedd commit 40b6708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/diffeqs/odesystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ function ODESystem(
110110
defaults=_merge(Dict(default_u0), Dict(default_p)),
111111
connection_type=nothing,
112112
preface=nothing,
113+
checks = true,
113114
)
114115
name === nothing && throw(ArgumentError("The `name` keyword must be provided. Please consider using the `@named` macro"))
115116
deqs = collect(deqs)
@@ -143,7 +144,7 @@ function ODESystem(
143144
if length(unique(sysnames)) != length(sysnames)
144145
throw(ArgumentError("System names must be unique."))
145146
end
146-
ODESystem(deqs, iv′, dvs′, ps′, var_to_name, ctrl′, observed, tgrad, jac, ctrl_jac, Wfact, Wfact_t, name, systems, defaults, nothing, connection_type, preface)
147+
ODESystem(deqs, iv′, dvs′, ps′, var_to_name, ctrl′, observed, tgrad, jac, ctrl_jac, Wfact, Wfact_t, name, systems, defaults, nothing, connection_type, preface, checks = checks)
147148
end
148149

149150
function ODESystem(eqs, iv=nothing; kwargs...)

0 commit comments

Comments
 (0)