Added boolean variable for tracking if a steadystate block is present in the mod file.

time-shift
Stéphane Adjemian (Hermes) 2016-05-19 14:37:25 +02:00
parent 73787c0c16
commit 96d538469c
2 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,7 @@ type Model
maximum_exo_lead::Int
lead_lag_incidence::Matrix{Int}
nnzderivatives::Vector{Int}
analytical_steady_state::Bool
static_and_dynamic_models_differ::Bool
equation_tags::Vector{UTF8String}
exo_names_orig_ord::Vector{Int}
@ -156,6 +157,7 @@ function dynare_model()
0, # maximum_exo_lead
Array(Int, 3, 0), # lead_lag_incidence
zeros(Int, 3), # nnzderivatives
false, # analytical_steady_state
false, # static_and_dynamic_models_differ
Array(ASCIIString,0), # equation_tags
Array(Int64,1), # exo_names_orig_ord

View File

@ -1174,6 +1174,7 @@ ModFile::writeExternalFilesJulia(const string &basename, FileOutputType output)
jlOutputFile << "model.static = " << basename << "Static.static!" << endl
<< "model.dynamic = " << basename << "Dynamic.dynamic!" << endl
<< "if isfile(\"" << basename << "SteadyState2.jl" "\")" << endl
<< " model.analytical_steady_state = true" << endl
<< " model.steady_state = " << basename << "SteadyState2.steady_state!" << endl
<< "end" << endl
<< "if isfile(\"" << basename << "StaticParamsDerivs.jl" "\")" << endl