Skip to content

Commit e1cc46e

Browse files
committed
Update debug_system() docstring
1 parent 075b908 commit e1cc46e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/systems/abstractsystem.jl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,19 +2266,17 @@ Replace functions with singularities with a function that errors with symbolic
22662266
information. E.g.
22672267
22682268
```julia-repl
2269-
julia> sys = debug_system(sys);
2269+
julia> sys = debug_system(sys)
22702270
2271-
julia> sys = complete(sys);
2271+
julia> sys = complete(sys)
22722272
2273-
julia> prob = ODEProblem(sys, [], (0, 1.0));
2273+
julia> prob = ODEProblem(sys, [1.0, 0.0], (0.0, 1.0))
22742274
2275-
julia> du = zero(prob.u0);
2276-
2277-
julia> prob.f(du, prob.u0, prob.p, 0.0)
2278-
ERROR: DomainError with (-1.0,):
2279-
log errors with input(s): -cos(Q(t)) => -1.0
2275+
julia> prob.f(prob.u0, prob.p, 0.0)
2276+
ERROR: Function log(-cos(Q(t))) errors with input
2277+
-cos(Q(t)) => -1.0
22802278
Stacktrace:
2281-
[1] (::ModelingToolkit.LoggedFun{typeof(log)})(args::Float64)
2279+
[1] (::ModelingToolkit.LoggedFun{typeof(log)})(num_args::Float64)
22822280
...
22832281
```
22842282
"""

0 commit comments

Comments
 (0)