Skip to content

Commit

Permalink
a few fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jun 6, 2024
1 parent 89d38f7 commit 1a8c408
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/gauss_adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ function GaussIntegrand(sol, sensealg, checkpoints, dgdp = nothing)
else
pf = DiffEqBase.ParamJacobianWrapper(unwrappedf, tspan[1], y)
pJ = similar(u0, length(u0), numparams)
pJ .= 0
paramjac_config = build_param_jac_config(sensealg, pf, y, p)
end

Expand Down
2 changes: 1 addition & 1 deletion test/sde_nondiag_stratonovich.jl
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ end
_dp1 = compute_dp(p, prob!, ForwardDiffSensitivity())
_dp2 = compute_dp(p, prob!, BacksolveAdjoint(autojacvec = ReverseDiffVJP()))
_dp3 = compute_dp(p, prob!, InterpolatingAdjoint(autojacvec = ReverseDiffVJP()))
@test_broken !any(isnan, compute_dp(p, prob!, InterpolatingAdjoint()))
@test !any(isnan, compute_dp(p, prob!, InterpolatingAdjoint()))

@test dp1_dp1 rtol=1e-8
@test dp2_dp2 rtol=1e-8
Expand Down

0 comments on commit 1a8c408

Please sign in to comment.