Skip to content

Commit 08287a4

Browse files
Merge pull request #2933 from AayushSabharwal/as/replace-fix
fix: fix replace with array dependent parameters
2 parents 5f26ded + 23d49c5 commit 08287a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/parameter_buffer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function SciMLStructures.replace(::SciMLStructures.Tunable, p::MTKParameters, ne
293293
@set! p.tunable = newvals
294294
if p.dependent_update_oop !== nothing
295295
raw = p.dependent_update_oop(p...)
296-
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(false))
296+
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(0))
297297
end
298298
return p
299299
end
@@ -336,7 +336,7 @@ for (Portion, field, recurse) in [(SciMLStructures.Discrete, :discrete, 2)
336336
)
337337
if p.dependent_update_oop !== nothing
338338
raw = p.dependent_update_oop(p...)
339-
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(false))
339+
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(0))
340340
end
341341
p
342342
end

0 commit comments

Comments
 (0)