From 10367f4d26721c17407486e13c74e21d9f7f336f Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Tue, 26 May 2020 13:00:36 -0400 Subject: [PATCH] Fix for MTK change --- src/MATLABDiffEq.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)