Skip to content

Commit c70f101

Browse files
fix: early exit late_binding_update_u0_p if system doesn't support initialization
1 parent 68e0605 commit c70f101

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ end
654654

655655
function SciMLBase.late_binding_update_u0_p(
656656
prob, sys::AbstractSystem, u0, p, t0, newu0, newp)
657+
supports_initialization(sys) || return newu0, newp
657658
u0 === missing && return newu0, (p === missing ? copy(newp) : newp)
658659
# non-symbolic u0 updates initials...
659660
if !(eltype(u0) <: Pair)

0 commit comments

Comments
 (0)