Skip to content

Commit 6158674

Browse files
Merge pull request #22 from SciML/ChrisRackauckas-patch-1
Fix for MTK change
2 parents 899cec0 + 10367f4 commit 6158674

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MATLABDiffEq.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function DiffEqBase.__solve(
4444
u0 = prob.u0
4545
end
4646

47-
sys = first(modelingtoolkitize(prob))
47+
sys = modelingtoolkitize(prob)
4848

4949
matstr = ModelingToolkit.build_function(sys.eqs,sys.states,
50-
sys.ps,sys.iv,
51-
target = ModelingToolkit.MATLABTarget())
50+
sys.ps,sys.iv,
51+
target = ModelingToolkit.MATLABTarget())
5252

5353
# Send the variables
5454
put_variable(get_default_msession(),:tspan,tspan)

0 commit comments

Comments
 (0)