We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
late_binding_update_u0_p
newu0
1 parent 216aa73 commit 01a43beCopy full SHA for 01a43be
src/systems/nonlinear/initializesystem.jl
@@ -669,6 +669,9 @@ function SciMLBase.late_binding_update_u0_p(
669
initials = DiffEqBase.promote_u0(initials, newu0, t0)
670
newp = repack(initials)
671
end
672
+ if length(newu0) != length(unknowns(sys))
673
+ throw(ArgumentError("Expected `newu0` to be of same length as unknowns ($(length(unknowns(sys)))). Got $(typeof(newu0)) of length $(length(newu0))"))
674
+ end
675
setp(sys, Initial.(unknowns(sys)))(newp, newu0)
676
return newu0, newp
677
0 commit comments