Skip to content

Commit

Permalink
fix first order sol pullback
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Oct 27, 2024
1 parent 4bdf55b commit cddc808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/perturbation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ function rrule(::typeof(calculate_first_order_solution),
verbose = verbose)

if !solved
return zeros(T.nVars,T.nPast_not_future_and_mixed + T.nExo), sol, false, x -> NoTangent(), NoTangent(), NoTangent()
return (zeros(T.nVars,T.nPast_not_future_and_mixed + T.nExo), sol, false), x -> NoTangent(), NoTangent(), NoTangent()
end

end # timeit_debug
Expand All @@ -195,7 +195,7 @@ function rrule(::typeof(calculate_first_order_solution),
Ā̂₀ᵤ =.lu!(Ā₀ᵤ, check = false)

if !.issuccess(Ā̂₀ᵤ)
return zeros(T.nVars,T.nPast_not_future_and_mixed + T.nExo), sol, false, x -> NoTangent(), NoTangent(), NoTangent()
return (zeros(T.nVars,T.nPast_not_future_and_mixed + T.nExo), sol, false), x -> NoTangent(), NoTangent(), NoTangent()
end

# A = vcat(-(Ā̂₀ᵤ \ (A₊ᵤ * D * L + Ã₀ᵤ * sol[T.dynamic_order,:] + A₋ᵤ)), sol)
Expand Down

0 comments on commit cddc808

Please sign in to comment.