Skip to content

Commit 1e521f5

Browse files
fixup! refactor: improve replace, remake_buffer
1 parent 71de765 commit 1e521f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/parameter_buffer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ for (Portion, field) in [(SciMLStructures.Tunable, :tunable)
192192
end
193193

194194
@eval function SciMLStructures.replace!(::$Portion, p::MTKParameters, newvals)
195-
update_tuple_of_buffers(new_val, p.$field)
195+
update_tuple_of_buffers(newvals, p.$field)
196196
if p.dependent_update_iip !== nothing
197197
p.dependent_update_iip(ArrayPartition(p.dependent), p...)
198198
end

0 commit comments

Comments
 (0)