Added boolean variable for tracking if a steadystate block is present in the mod file.
parent
73787c0c16
commit
96d538469c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue