Skip to content

Commit

Permalink
fix first order get rel ss
Browse files Browse the repository at this point in the history
  • Loading branch information
Thore Kockerols authored and Thore Kockerols committed Oct 27, 2024
1 parent f834332 commit 6d393ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MacroModelling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7199,9 +7199,9 @@ function get_relevant_steady_state_and_state_update(::Val{:first_order},

TT = 𝓂.timings

if solution_error > tol || isnan(solution_error)
if solution_error > 1e-12 # || isnan(solution_error) if it's NaN the fisrt condition is false anyway
# println("NSSS not found")
return TT, SS_and_pars, zeros(S, 0, 0), [state], false
return TT, SS_and_pars, zeros(S, 0, 0), [state], solution_error < tol
end

βˆ‡β‚ = calculate_jacobian(parameter_values, SS_and_pars, 𝓂, timer = timer)# |> Matrix
Expand All @@ -7217,7 +7217,7 @@ function get_relevant_steady_state_and_state_update(::Val{:first_order},

if !solved
# println("NSSS not found")
return TT, SS_and_pars, zeros(S, 0, 0), [state], false
return TT, SS_and_pars, zeros(S, 0, 0), [state], solved
end

return TT, SS_and_pars, 𝐒₁, [state], solved
Expand Down

0 comments on commit 6d393ac

Please sign in to comment.