diff --git a/src/systems/abstractsystem.jl b/src/systems/abstractsystem.jl index e8f8f26e99..9143e7a751 100644 --- a/src/systems/abstractsystem.jl +++ b/src/systems/abstractsystem.jl @@ -2173,8 +2173,8 @@ function linearization_function(sys::AbstractSystem, inputs, function (u, p, t) state = ProblemState(; u, p, t) - p_setter!(oldps, p_getter(state)) - newu = u_getter(state) + p_setter!(oldps, p_getter(u, p..., t)) + newu = u_getter(u, p, t) return newu, oldps end end