Skip to content

Commit beeaab2

Browse files
fix: fix incorrect function calls in linearization_function
1 parent ad96d9a commit beeaab2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/systems/abstractsystem.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,9 +2172,8 @@ function linearization_function(sys::AbstractSystem, inputs,
21722172
u_getter = u_getter
21732173

21742174
function (u, p, t)
2175-
state = ProblemState(; u, p, t)
2176-
p_setter!(oldps, p_getter(state))
2177-
newu = u_getter(state)
2175+
p_setter!(oldps, p_getter(u, p..., t))
2176+
newu = u_getter(u, p, t)
21782177
return newu, oldps
21792178
end
21802179
end

0 commit comments

Comments
 (0)