Skip to content

Commit

Permalink
fix: fix incorrect function calls in linearization_function
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jul 31, 2024
1 parent ad96d9a commit beeaab2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/systems/abstractsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2172,9 +2172,8 @@ function linearization_function(sys::AbstractSystem, inputs,
u_getter = u_getter

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
Expand Down

0 comments on commit beeaab2

Please sign in to comment.