Skip to content

Commit

Permalink
Merge pull request #22 from SciML/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Fix for MTK change
  • Loading branch information
ChrisRackauckas authored May 26, 2020
2 parents 899cec0 + 10367f4 commit 6158674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MATLABDiffEq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6158674

Please sign in to comment.