Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/basics/Composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ p = [decay1.a => 0.1
decay2.a => 0.2]
using OrdinaryDiffEq
prob = ODEProblem(simplified_sys, x0, (0.0, 100.0), p)
prob = ODEProblem(simplified_sys, [x0; p], (0.0, 100.0))
sol = solve(prob, Tsit5())
sol[decay2.f]
```
Expand Down
4 changes: 2 additions & 2 deletions docs/src/basics/Events.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ ev = ModelingToolkit.SymbolicDiscreteCallback(
@mtkcompile sys = System(
D(x) ~ c * cos(x), t, [x], [c]; discrete_events = [ev])
prob = ODEProblem(sys, [x => 0.0], (0.0, 2pi), [c => 1.0])
prob = ODEProblem(sys, [x => 0.0, c => 1.0], (0.0, 2pi))
sol = solve(prob, Tsit5())
sol[c]
```
Expand All @@ -439,7 +439,7 @@ will be saved. If we repeat the above example with `c` not a `discrete_parameter
@mtkcompile sys = System(
D(x) ~ c * cos(x), t, [x], [c]; discrete_events = [1.0 => [c ~ Pre(c) + 1]])
prob = ODEProblem(sys, [x => 0.0], (0.0, 2pi), [c => 1.0])
prob = ODEProblem(sys, [x => 0.0, c => 1.0], (0.0, 2pi))
sol = solve(prob, Tsit5())
sol.ps[c] # sol[c] will error, since `c` is not a timeseries value
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/ode_modeling.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end

using OrdinaryDiffEq
@mtkcompile fol = FOL()
prob = ODEProblem(fol, [], (0.0, 10.0), [])
prob = ODEProblem(fol, [], (0.0, 10.0))
sol = solve(prob)

using Plots
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/programmatically_generating.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ eqs = [D(x) ~ (h - x) / τ] # create an array of equations
# Perform the standard transformations and mark the model complete
# Note: Complete models cannot be subsystems of other models!
fol = mtkcompile(model)
prob = ODEProblem(fol, [], (0.0, 10.0), [])
prob = ODEProblem(fol, [], (0.0, 10.0))
using OrdinaryDiffEq
sol = solve(prob)
Expand Down
Loading