Skip to content

Commit

Permalink
Fix Array of Structs to Struct of Array in ReverseDiff
Browse files Browse the repository at this point in the history
Fixes #581
  • Loading branch information
ChrisRackauckas committed Mar 12, 2024
1 parent 4a86cef commit a6737f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/concrete_solve.jl
Expand Up @@ -1313,9 +1313,9 @@ function DiffEqBase._concrete_solve_adjoint(
end
else
# use TrackedArray for efficiency of the tape
_f(args...) = reduce(vcat, prob.f(args...))
_f(args...) = ArrayInterface.aos_to_soa(prob.f(args...))
if prob isa SDEProblem
_g(args...) = reduce(vcat, prob.g(args...))
_g(args...) = ArrayInterface.aos_to_soa(prob.g(args...))
_prob = remake(prob,
f = DiffEqBase.parameterless_type(prob.f){
SciMLBase.isinplace(prob),
Expand Down

0 comments on commit a6737f7

Please sign in to comment.