From 96d538469ce894fafea0b280e93721a3ef269a9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Hermes=29?=
<stephane.adjemian@univ-lemans.fr>
Date: Thu, 19 May 2016 14:37:25 +0200
Subject: [PATCH] Added boolean variable for tracking if a steadystate block is
present in the mod file.
---
julia/DynareModel.jl | 2 ++
preprocessor/ModFile.cc | 1 +
2 files changed, 3 insertions(+)
diff --git a/julia/DynareModel.jl b/julia/DynareModel.jl
index 6b37b8d71..58426148a 100644
--- a/julia/DynareModel.jl
+++ b/julia/DynareModel.jl
@@ -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
diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc
index f267f3a7f..1ea0cccdf 100644
--- a/preprocessor/ModFile.cc
+++ b/preprocessor/ModFile.cc
@@ -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
--
GitLab