Skip to content

Commit

Permalink
Fix setvjp for SteadyStateAdjoint
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Apr 14, 2023
1 parent 2aa6a75 commit ed76eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sensitivity_algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,8 @@ Base.@pure function SteadyStateAdjoint(; chunk_size = 0, autodiff = true,
SteadyStateAdjoint{chunk_size, autodiff, diff_type, typeof(autojacvec), typeof(linsolve)
}(autojacvec, linsolve)
end
function setvjp(sensealg::SteadyStateAdjoint{CS, AD, FDT, LS}, vjp) where {CS, AD, FDT, LS}
function setvjp(sensealg::SteadyStateAdjoint{CS, AD, FDT, VJP, LS},
vjp) where {CS, AD, FDT, VJP, LS}
SteadyStateAdjoint{CS, AD, FDT, typeof(vjp), LS}(vjp, sensealg.linsolve)
end

Expand Down

0 comments on commit ed76eb3

Please sign in to comment.