Skip to content

Commit

Permalink
use new build_function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Mar 4, 2021
1 parent b702701 commit fa90016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MATLABDiffEq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function DiffEqBase.__solve(

sys = modelingtoolkitize(prob)

matstr = ModelingToolkit.build_function(equations(sys),states(sys),
matstr = ModelingToolkit.build_function(map(x->x.rhs,equations(sys)),states(sys),
parameters(sys),independent_variable(sys),
target = ModelingToolkit.MATLABTarget())

Expand Down

0 comments on commit fa90016

Please sign in to comment.