diff --git a/src/MATLABDiffEq.jl b/src/MATLABDiffEq.jl index 218b013..14b4710 100644 --- a/src/MATLABDiffEq.jl +++ b/src/MATLABDiffEq.jl @@ -44,11 +44,11 @@ function DiffEqBase.__solve( u0 = prob.u0 end - sys = first(modelingtoolkitize(prob)) + sys = modelingtoolkitize(prob) matstr = ModelingToolkit.build_function(sys.eqs,sys.states, - sys.ps,sys.iv, - target = ModelingToolkit.MATLABTarget()) + sys.ps,sys.iv, + target = ModelingToolkit.MATLABTarget()) # Send the variables put_variable(get_default_msession(),:tspan,tspan)