Skip to content

Commit

Permalink
fix: fix replace with array dependent parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Aug 7, 2024
1 parent adb6a84 commit 23d49c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/systems/parameter_buffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function SciMLStructures.replace(::SciMLStructures.Tunable, p::MTKParameters, ne
@set! p.tunable = newvals
if p.dependent_update_oop !== nothing
raw = p.dependent_update_oop(p...)
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(false))
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(0))
end
return p
end
Expand Down Expand Up @@ -336,7 +336,7 @@ for (Portion, field, recurse) in [(SciMLStructures.Discrete, :discrete, 2)
)
if p.dependent_update_oop !== nothing
raw = p.dependent_update_oop(p...)
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(false))
@set! p.dependent = split_into_buffers(raw, p.dependent, Val(0))
end
p
end
Expand Down

0 comments on commit 23d49c5

Please sign in to comment.