Skip to content

Commit 2c88339

Browse files
committed
Force maintenance of taylor
1 parent 4fba774 commit 2c88339

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/stage1/forward.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function shuffle_up(r::TaylorBundle{1, Tuple{B1,B2}}) where {B1,B2}
3939
z₁ = partial(r, 1)[1]
4040
z₂ = primal(r)[2]
4141
z₁₂ = partial(r, 1)[2]
42-
if z₁ == z₂
42+
if true
43+
@assert z₁ == z₂
4344
return TaylorBundle{2}(z₀, (z₁, z₁₂))
4445
else
4546
return ExplicitTangentBundle{2}(z₀, (z₁, z₂, z₁₂))
@@ -61,7 +62,8 @@ function taylor_compatible(r::TaylorBundle{N, Tuple{B1,B2}}) where {N, B1,B2}
6162
end
6263
function shuffle_up(r::TaylorBundle{N, Tuple{B1,B2}}) where {N, B1,B2}
6364
the_primal = primal(r)[1]
64-
if taylor_compatible(r)
65+
if true
66+
@assert taylor_compatible(r)
6567
the_partials = ntuple(N+1) do i
6668
if i <= N
6769
partial(r, i)[1] # == `partial(r,i-1)[2]` (except first which is primal(r)[2])

0 commit comments

Comments
 (0)