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 5921fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/abstractsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5921fba

Please sign in to comment.