Skip to content

Commit 0b0f20d

Browse files
MasonProtterChrisRackauckas
authored andcommitted
format
1 parent e1a9ac4 commit 0b0f20d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/systems/diffeqs/sdesystem.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ struct SDESystem <: AbstractODESystem
133133
be `true` when `noiseeqs isa Vector`.
134134
"""
135135
is_scalar_noise::Bool
136-
136+
137137
function SDESystem(tag, deqs, neqs, iv, dvs, ps, tspan, var_to_name, ctrls, observed,
138138
tgrad,
139139
jac,
140140
ctrl_jac, Wfact, Wfact_t, name, systems, defaults, connector_type,
141141
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;
143143
checks::Union{Bool, Int} = true)
144144
if checks == true || (checks & CheckComponents) > 0
145145
check_independent_variables([iv])
@@ -181,11 +181,11 @@ function SDESystem(deqs::AbstractVector{<:Equation}, neqs::AbstractArray, iv, dv
181181
discrete_events = nothing,
182182
parameter_dependencies = nothing,
183183
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)
189189
name === nothing &&
190190
throw(ArgumentError("The `name` keyword must be provided. Please consider using the `@named` macro"))
191191
iv′ = value(iv)
@@ -220,10 +220,10 @@ function SDESystem(deqs::AbstractVector{<:Equation}, neqs::AbstractArray, iv, dv
220220
parameter_dependencies, ps′ = process_parameter_dependencies(
221221
parameter_dependencies, ps′)
222222
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)
227227
end
228228

229229
function SDESystem(sys::ODESystem, neqs; kwargs...)
@@ -615,7 +615,6 @@ function SDEFunctionExpr(sys::SDESystem, args...; kwargs...)
615615
SDEFunctionExpr{true}(sys, args...; kwargs...)
616616
end
617617

618-
619618
function scalar_noise end # defined in ../ext/MTKDiffEqNoiseProcess.jl
620619

621620
function DiffEqBase.SDEProblem{iip, specialize}(
@@ -738,7 +737,8 @@ function SDEProblemExpr{iip}(sys::SDESystem, u0map, tspan,
738737
p = $p
739738
noise_rate_prototype = $noise_rate_prototype
740739
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,
742742
$(kwargs...))
743743
end
744744
!linenumbers ? Base.remove_linenums!(ex) : ex

src/systems/systems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function __structural_simplify(sys::AbstractSystem, io = nothing; simplify = fal
134134
noise_eqs = diag(sorted_g_rows)
135135
is_scalar_noise = false
136136
elseif sorted_g_rows isa AbstractMatrix && size(sorted_g_rows, 2) == 1
137-
noise_eqs = sorted_g_rows[:, 1]
137+
noise_eqs = sorted_g_rows[:, 1]
138138
is_scalar_noise = true
139139
else
140140
noise_eqs = sorted_g_rows

0 commit comments

Comments
 (0)