Commit 1f5e20d3 authored by MichelJuillard's avatar MichelJuillard
Browse files

set steady state to 0 in absence of steady state model (for now)

parent f57426c2
......@@ -3,10 +3,11 @@ function steady_state!(context)
model = context.models[1]
work = context.work
steadystatemodule = model.steady_state!
results = context.results.model_results[1]
fill!(results.exogenous_steady_state, 0.0)
if isnothing(steadystatemodule)
fill!(results.endogenous_steady_state, 0.0)
else
results = context.results.model_results[1]
fill!(results.exogenous_steady_state, 0.0)
steadystatemodule.steady_state!(results.endogenous_steady_state,
results.exogenous_steady_state,
work.params)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment