Skip to content

Commit 7359ddb

Browse files
fix: respect operating point in linearize
1 parent dc395f6 commit 7359ddb

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
@@ -2229,7 +2229,7 @@ function linearize(sys, lin_fun; t = 0.0, op = Dict(), allow_input_derivatives =
22292229
u0, defs = get_u0(sys, x0, p)
22302230
if has_index_cache(sys) && get_index_cache(sys) !== nothing
22312231
if p isa SciMLBase.NullParameters
2232-
p = Dict()
2232+
p = op
22332233
elseif p isa Dict
22342234
p = merge(p, op)
22352235
elseif p isa Vector && eltype(p) <: Pair

0 commit comments

Comments
 (0)