Skip to content

Commit b668014

Browse files
committedMar 11, 2025·
do not output success
1 parent debd300 commit b668014

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/linearization.jl

+4-5
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ function (linfun::LinearizationFunction)(u, p, t)
214214
h_u = h_u,
215215
x = u,
216216
p,
217-
t,
218-
success)
217+
t)
219218
end
220219

221220
"""
@@ -323,7 +322,7 @@ function CommonSolve.solve(prob::LinearizationProblem; allow_input_derivatives =
323322
p = parameter_values(prob)
324323
t = current_time(prob)
325324
linres = prob.f(u0, p, t)
326-
f_x, f_z, g_x, g_z, f_u, g_u, h_x, h_z, h_u, x, p, t, success = linres
325+
f_x, f_z, g_x, g_z, f_u, g_u, h_x, h_z, h_u, x, p, t = linres
327326

328327
nx, nu = size(f_u)
329328
nz = size(f_z, 2)
@@ -360,7 +359,7 @@ function CommonSolve.solve(prob::LinearizationProblem; allow_input_derivatives =
360359
end
361360
end
362361

363-
(; A, B, C, D), (; x, p, t, success)
362+
(; A, B, C, D), (; x, p, t)
364363
end
365364

366365
"""
@@ -514,7 +513,7 @@ If `allow_input_derivatives = false`, an error will be thrown if input derivativ
514513
515514
`zero_dummy_der` can be set to automatically set the operating point to zero for all dummy derivatives.
516515
517-
The return value `extras` is a NamedTuple `(; x, p, t, success)` containing the result of the initialization problem that was solved to determine the operating point.
516+
The return value `extras` is a NamedTuple `(; x, p, t)` containing the result of the initialization problem that was solved to determine the operating point.
518517
519518
See also [`linearization_function`](@ref) which provides a lower-level interface, [`linearize_symbolic`](@ref) and [`ModelingToolkit.reorder_unknowns`](@ref).
520519

0 commit comments

Comments
 (0)
Please sign in to comment.