Skip to content

Commit 795047e

Browse files
test: fix adjoints test
1 parent 29bbc34 commit 795047e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/downstream/adjoints.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ u0 = [lorenz1.x => 1.0,
2222
lorenz1.z => 0.0,
2323
lorenz2.x => 0.0,
2424
lorenz2.y => 1.0,
25-
lorenz2.z => 0.0,
26-
a => 2.0]
25+
lorenz2.z => 0.0]
2726

2827
p = [lorenz1.σ => 10.0,
2928
lorenz1.ρ => 28.0,
@@ -68,7 +67,7 @@ gs_ts, = Zygote.gradient(sol) do sol
6867
sum(sum.(sol[[lorenz1.x, lorenz2.x], :]))
6968
end
7069

71-
@test all(map(x -> x == true_grad_vecsym, gs_ts))
70+
@test all(map(x -> x == true_grad_vecsym, gs_ts.u))
7271

7372
# BatchedInterface AD
7473
@variables x(t)=1.0 y(t)=1.0 z(t)=1.0 w(t)=1.0

0 commit comments

Comments
 (0)