You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/structural_transformation/utils.jl
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -530,7 +530,7 @@ Distribute a shift applied to a whole expression or equation.
530
530
Shift(t, 1)(x + y) will become Shift(t, 1)(x) + Shift(t, 1)(y).
531
531
Only shifts variables whose independent variable is the same t that appears in the Shift (i.e. constants, time-independent parameters, etc. do not get shifted).
532
532
"""
533
-
functiondistribute_shift(var)
533
+
functiondistribute_shift(var)
534
534
var =unwrap(var)
535
535
var isa Equation &&returndistribute_shift(var.lhs) ~distribute_shift(var.rhs)
536
536
@@ -553,11 +553,13 @@ function _distribute_shift(expr, shift)
function SciMLBase.ImplicitDiscreteFunction{iip, specialize}(
@@ -360,7 +366,6 @@ function SciMLBase.ImplicitDiscreteFunction{iip, specialize}(
360
366
eval_module =@__MODULE__,
361
367
analytic =nothing,
362
368
kwargs...) where {iip, specialize}
363
-
364
369
if!iscomplete(sys)
365
370
error("A completed `ImplicitDiscreteSystem` is required. Call `complete` or `structural_simplify` on the system before creating a `ImplicitDiscreteProblem`")
366
371
end
@@ -404,9 +409,12 @@ struct ImplicitDiscreteFunctionClosure{O, I} <: Function
404
409
f_iip::I
405
410
end
406
411
(f::ImplicitDiscreteFunctionClosure)(u_next, u, p, t) = f.f_oop(u_next, u, p, t)
407
-
(f::ImplicitDiscreteFunctionClosure)(resid, u_next, u, p, t) = f.f_iip(resid, u_next, u, p, t)
412
+
function (f::ImplicitDiscreteFunctionClosure)(resid, u_next, u, p, t)
0 commit comments