Skip to content

Commit

Permalink
change getproperty to setproperty! (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
jClugstor authored Aug 19, 2024
1 parent 0e9e47c commit 69fdb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ is the name of the variable whose data will be stored and a code target.
"""
function hook_STC_settvar(state_name::Symbol, tgt_name::Symbol, ::Union{CPUBackend, CUDABackend})
ssymb = QuoteNode(state_name)
return :(getproperty(du, $ssymb) .= $tgt_name)
return :(setproperty!(du, $ssymb, $tgt_name))
end

const PROMOTE_ARITHMETIC_MAP = Dict(:(+) => :.+,
Expand Down

0 comments on commit 69fdb8e

Please sign in to comment.