Skip to content

Commit 4ba5b0e

Browse files
fix: respect operating point in linearize
1 parent 01be21c commit 4ba5b0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ function linearize(sys, lin_fun; t = 0.0, op = Dict(), allow_input_derivatives =
22072207
u0, defs = get_u0(sys, x0, p)
22082208
if has_index_cache(sys) && get_index_cache(sys) !== nothing
22092209
if p isa SciMLBase.NullParameters
2210-
p = Dict()
2210+
p = op
22112211
elseif p isa Dict
22122212
p = merge(p, op)
22132213
elseif p isa Vector && eltype(p) <: Pair

0 commit comments

Comments
 (0)