@@ -133,13 +133,13 @@ struct SDESystem <: AbstractODESystem
133
133
be `true` when `noiseeqs isa Vector`.
134
134
"""
135
135
is_scalar_noise:: Bool
136
-
136
+
137
137
function SDESystem (tag, deqs, neqs, iv, dvs, ps, tspan, var_to_name, ctrls, observed,
138
138
tgrad,
139
139
jac,
140
140
ctrl_jac, Wfact, Wfact_t, name, systems, defaults, connector_type,
141
141
cevents, devents, parameter_dependencies, metadata = nothing , gui_metadata = nothing ,
142
- complete = false , index_cache = nothing , parent = nothing , is_scalar_noise= false ;
142
+ complete = false , index_cache = nothing , parent = nothing , is_scalar_noise = false ;
143
143
checks:: Union{Bool, Int} = true )
144
144
if checks == true || (checks & CheckComponents) > 0
145
145
check_independent_variables ([iv])
@@ -181,11 +181,11 @@ function SDESystem(deqs::AbstractVector{<:Equation}, neqs::AbstractArray, iv, dv
181
181
discrete_events = nothing ,
182
182
parameter_dependencies = nothing ,
183
183
metadata = nothing ,
184
- gui_metadata = nothing ,
185
- complete = false ,
186
- index_cache = nothing ,
187
- parent = nothing ,
188
- is_scalar_noise= false )
184
+ gui_metadata = nothing ,
185
+ complete = false ,
186
+ index_cache = nothing ,
187
+ parent = nothing ,
188
+ is_scalar_noise = false )
189
189
name === nothing &&
190
190
throw (ArgumentError (" The `name` keyword must be provided. Please consider using the `@named` macro" ))
191
191
iv′ = value (iv)
@@ -220,10 +220,10 @@ function SDESystem(deqs::AbstractVector{<:Equation}, neqs::AbstractArray, iv, dv
220
220
parameter_dependencies, ps′ = process_parameter_dependencies (
221
221
parameter_dependencies, ps′)
222
222
SDESystem (Threads. atomic_add! (SYSTEM_COUNT, UInt (1 )),
223
- deqs, neqs, iv′, dvs′, ps′, tspan, var_to_name, ctrl′, observed, tgrad, jac,
224
- ctrl_jac, Wfact, Wfact_t, name, systems, defaults, connector_type,
225
- cont_callbacks, disc_callbacks, parameter_dependencies, metadata, gui_metadata,
226
- complete, index_cache, parent, is_scalar_noise; checks = checks)
223
+ deqs, neqs, iv′, dvs′, ps′, tspan, var_to_name, ctrl′, observed, tgrad, jac,
224
+ ctrl_jac, Wfact, Wfact_t, name, systems, defaults, connector_type,
225
+ cont_callbacks, disc_callbacks, parameter_dependencies, metadata, gui_metadata,
226
+ complete, index_cache, parent, is_scalar_noise; checks = checks)
227
227
end
228
228
229
229
function SDESystem (sys:: ODESystem , neqs; kwargs... )
@@ -615,7 +615,6 @@ function SDEFunctionExpr(sys::SDESystem, args...; kwargs...)
615
615
SDEFunctionExpr {true} (sys, args... ; kwargs... )
616
616
end
617
617
618
-
619
618
function scalar_noise end # defined in ../ext/MTKDiffEqNoiseProcess.jl
620
619
621
620
function DiffEqBase. SDEProblem {iip, specialize} (
@@ -738,7 +737,8 @@ function SDEProblemExpr{iip}(sys::SDESystem, u0map, tspan,
738
737
p = $ p
739
738
noise_rate_prototype = $ noise_rate_prototype
740
739
noise = $ noise
741
- SDEProblem (f, u0, tspan, p; noise_rate_prototype = noise_rate_prototype, noise = noise,
740
+ SDEProblem (
741
+ f, u0, tspan, p; noise_rate_prototype = noise_rate_prototype, noise = noise,
742
742
$ (kwargs... ))
743
743
end
744
744
! linenumbers ? Base. remove_linenums! (ex) : ex
0 commit comments