Skip to content

Commit 4853750

Browse files
fix: improve remake performance via late_binding_update_u0_p improvements
I have no idea why this works
1 parent fb2bc23 commit 4853750

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/remake.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,10 +1085,6 @@ calling `SymbolicIndexingInterface.symbolic_container`, provided for dispatch. R
10851085
the updated `newu0` and `newp`.
10861086
"""
10871087
function late_binding_update_u0_p(prob, root_indp, u0, p, t0, newu0, newp)
1088-
if hasmethod(symbolic_container, Tuple{typeof(root_indp)}) &&
1089-
(sc = symbolic_container(root_indp)) !== root_indp
1090-
return late_binding_update_u0_p(prob, sc, u0, p, t0, newu0, newp)
1091-
end
10921088
return newu0, newp
10931089
end
10941090

@@ -1099,7 +1095,7 @@ Calls `late_binding_update_u0_p(prob, root_indp, u0, p, t0, newu0, newp)` after
10991095
`root_indp`.
11001096
"""
11011097
function late_binding_update_u0_p(prob, u0, p, t0, newu0, newp)
1102-
root_indp = prob
1098+
root_indp = get_root_indp(prob)
11031099
return late_binding_update_u0_p(prob, root_indp, u0, p, t0, newu0, newp)
11041100
end
11051101

0 commit comments

Comments
 (0)