Skip to content

Commit 0ad773d

Browse files
Merge pull request #3457 from SciML/baggepinnen-patch-7
error message threw error message
2 parents 54f3a96 + d157ebe commit 0ad773d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linearization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ function CommonSolve.solve(prob::LinearizationProblem; allow_input_derivatives =
353353
if !iszero(Bs)
354354
if !allow_input_derivatives
355355
der_inds = findall(vec(any(!=(0), Bs, dims = 1)))
356-
error("Input derivatives appeared in expressions (-g_z\\g_u != 0), the following inputs appeared differentiated: $(inputs(sys)[der_inds]). Call `linearize` with keyword argument `allow_input_derivatives = true` to allow this and have the returned `B` matrix be of double width ($(2nu)), where the last $nu inputs are the derivatives of the first $nu inputs.")
356+
error("Input derivatives appeared in expressions (-g_z\\g_u != 0), the following inputs appeared differentiated: $(inputs(prob.f.prob.f.sys)[der_inds]). Call `linearize` with keyword argument `allow_input_derivatives = true` to allow this and have the returned `B` matrix be of double width ($(2nu)), where the last $nu inputs are the derivatives of the first $nu inputs.")
357357
end
358358
B = [B [zeros(nx, nu); Bs]]
359359
D = [D zeros(ny, nu)]

0 commit comments

Comments
 (0)