Skip to content

Commit

Permalink
Update sde_nondiag_stratonovich.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jan 10, 2023
1 parent 3a51220 commit d3e0de2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/sde_nondiag_stratonovich.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,15 @@ end
@test isapprox(res_sde_pa, res_sde_p, rtol = 1e-5)

@info res_sde_pa

@test_broken begin
res_sde_u0a, res_sde_pa = adjoint_sensitivities(sol, EulerHeun(), t = Array(t),
dgdu_discrete = dg!,
dt = dtnd, adaptive = false,
sensealg = BacksolveAdjoint(autojacvec = ZygoteVJP()))

res_sde_u0a, res_sde_pa = adjoint_sensitivities(sol, EulerHeun(), t = Array(t),
dgdu_discrete = dg!,
dt = dtnd, adaptive = false,
sensealg = BacksolveAdjoint(autojacvec = ZygoteVJP()))

@test isapprox(res_sde_u0a, res_sde_u0, rtol = 1e-6)
@test isapprox(res_sde_pa, res_sde_p, rtol = 1e-6)
@test all(isapprox(res_sde_u0a, res_sde_u0, rtol = 1e-6),isapprox(res_sde_pa, res_sde_p, rtol = 1e-6))
end

@info res_sde_pa

Expand Down

0 comments on commit d3e0de2

Please sign in to comment.