Skip to content

Commit

Permalink
Merge pull request #2933 from AayushSabharwal/as/replace-fix
Browse files Browse the repository at this point in the history
fix: fix replace with array dependent parameters
  • Loading branch information
ChrisRackauckas authored Aug 8, 2024
2 parents 5f26ded + 23d49c5 commit 08287a4
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 08287a4

Please sign in to comment.