From 78549f48da19e49bd2ba48d8ce3acf3173d1988b Mon Sep 17 00:00:00 2001 From: thorek1 Date: Mon, 2 Dec 2024 09:05:15 +0100 Subject: [PATCH] show seconds before warning --- src/macros.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/macros.jl b/src/macros.jl index 3695c5cf..20084258 100644 --- a/src/macros.jl +++ b/src/macros.jl @@ -1544,14 +1544,14 @@ macro parameters(𝓂,ex...) # println("Find SS solver parameters which solve for the NSSS:\t",round(time() - start_time, digits = 3), " seconds") end - if !found_solution - @warn "Could not find non-stochastic steady state. Consider setting bounds on variables or calibrated parameters in the `@parameters` section (e.g. `k > 10`)." - end - if !$silent println(round(time() - start_time, digits = 3), " seconds") end + if !found_solution + @warn "Could not find non-stochastic steady state. Consider setting bounds on variables or calibrated parameters in the `@parameters` section (e.g. `k > 10`)." + end + mod.$𝓂.solution.non_stochastic_steady_state = SS_and_pars mod.$𝓂.solution.outdated_NSSS = false end