diff --git a/.github/workflows/reactant.yaml b/.github/workflows/reactant.yaml index e432b5649..bd54b4ca3 100644 --- a/.github/workflows/reactant.yaml +++ b/.github/workflows/reactant.yaml @@ -88,6 +88,9 @@ jobs: timeout-minutes: 300 env: REACTANT_BACKENDS: cpu + # Coverage slows compilation: the wide coupled reverse case at T = 400 + # compiles in about 290 s without it and passes 600 s with it. + REACTANT_TIMEOUT: 1800 steps: - uses: actions/checkout@v7 - uses: julia-actions/setup-julia@v3 diff --git a/src/operators/growth.jl b/src/operators/growth.jl index cc82f8c32..f56addb96 100644 --- a/src/operators/growth.jl +++ b/src/operators/growth.jl @@ -602,13 +602,15 @@ function _eigen_jacobian( M = _primal_matrix(lin, gain, at, ρ, L, S) Dv = _fixed(_lagged(lin, gain, at, v, ρ, L)) # Filled block by block in an array like `M`, so that it takes the - # number type of the entries, tracked or not. + # number type of the entries, tracked or not. The last row is a view + # with two ranges: a traced array cannot take a row written through a + # view indexed by an integer. T = promote_type(eltype(M), eltype(Dv)) J = similar(M, T, S + 1, S + 1) view(J, 1:S, 1:S) .= M - I view(J, 1:S, S + 1) .= .-Dv - view(J, S + 1, 1:S) .= one(T) - view(J, S + 1, (S + 1):(S + 1)) .= zero(T) + view(J, (S + 1):(S + 1), 1:S) .= one(T) + view(J, (S + 1):(S + 1), (S + 1):(S + 1)) .= zero(T) return ρ, v, _inverse(J) end