Skip to content

Commit

Permalink
hotfix scalar path
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed May 14, 2024
1 parent c868913 commit 53cd1ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "RecursiveArrayTools"
uuid = "731186ca-8d62-57ce-b412-fbd966d074cd"
authors = ["Chris Rackauckas <[email protected]>"]
version = "3.18.0"
version = "3.18.1"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
4 changes: 2 additions & 2 deletions ext/RecursiveArrayToolsReverseDiffExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function trackedarraycopyto!(dest, src)
for (i, slice) in zip(eachindex(dest.u), eachslice(src, dims = ndims(src)))
if dest.u[i] isa AbstractArray
dest.u[i] = reshape(ArrayInterface.aos_to_soa(slice), size(dest.u[i]))
elseif dest.u[i]
trackedarraycopyto!(dest.u[i], slice)
elseif dest.u[i] isa Number
dest.u[i] = slice
end
end
end
Expand Down

0 comments on commit 53cd1ae

Please sign in to comment.