Skip to content

Commit 241fa6e

Browse files
Fix ParameterizedFunctions.jl support with latest modelingtoolkitize (MatlabDiffEq.jl)
1 parent ebd34d7 commit 241fa6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/diffeqs/modelingtoolkitize.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generate `ODESystem`, dependent variables, and parameters from an `ODEProblem`.
55
"""
66
function modelingtoolkitize(prob::DiffEqBase.ODEProblem)
77
prob.f isa DiffEqBase.AbstractParameterizedFunction &&
8-
return (prob.f.sys, prob.f.sys.states, prob.f.sys.ps)
8+
return prob.f.sys
99
@parameters t
1010

1111
if prob.p isa Tuple || prob.p isa NamedTuple

0 commit comments

Comments
 (0)