Skip to content

Commit aa6007c

Browse files
Update stiff_ode_fit.md
1 parent 63a0b0a commit aa6007c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/examples/stiff_ode_fit.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ the original parameters.
101101
```julia
102102
function predict_adjoint(p)
103103
p = exp.(p)
104-
Array(concrete_solve(prob,Rosenbrock23(autodiff=false),u0,p,saveat=ts,sensealg=QuadratureAdjoint(autojacvec=ReverseDiffVJP(true))))
104+
_prob = remake(prob,p=p)
105+
Array(solve(_prob,Rosenbrock23(autodiff=false),saveat=ts,sensealg=QuadratureAdjoint(autojacvec=ReverseDiffVJP(true))))
105106
end
106107

107108
function loss_adjoint(p)

0 commit comments

Comments
 (0)