Added new member temporaries in model_.

Provides the number of temporary variables in the static and dynamic models.
parent db795c5d
......@@ -3,7 +3,7 @@ using BinaryProvider
const verbose = "--verbose" in ARGS
const prefix = Prefix(get([a for a in ARGS if a != "--verbose"], 1, joinpath(@__DIR__, "usr")))
PREPROCESSOR_VERSION = "b52ded0eb429b0f24eb7f27cdb1b19835a232bb8"
PREPROCESSOR_VERSION = "46a2272ef929a7acbf276fea2c43089bfc7d0e34"
REMOTE_PATH = "https://dynare.adjemian.eu/preprocessor/$PREPROCESSOR_VERSION"
products = Product[
......@@ -11,11 +11,11 @@ products = Product[
]
download_info = Dict(
Linux(:i686, :glibc) => ("$REMOTE_PATH/linux/32/preprocessor.tar.gz", "861dee9c0c7bbacf30d5553de8110933fa4ac56cd028ff15a7a4f2927912f6c1"),
Linux(:x86_64, :glibc) => ("$REMOTE_PATH/linux/64/preprocessor.tar.gz", "e155e7dd8530d9ac80cadf8e41c0ebbfa6297d1b0437bbdc33ddb2867c97348d"),
MacOS() => ("$REMOTE_PATH/osx/64/preprocessor.tar.gz", "8829a829ef5c01a50e5aefd07ca9a0e126cea71b7f15f0e914c3e90bb17acdb3"),
Windows(:i686) => ("$REMOTE_PATH/windows/32/preprocessor.tar.gz", "7285f9d95f45eb753dc7f3b614fc85dc9dff7584717973f3c28e967fb3a27d4f"),
Windows(:x86_64) => ("$REMOTE_PATH/windows/64/preprocessor.tar.gz", "a05cdfc6388ba4df17a495763fbee6ea15de71de5d01f59a31ba2aa2a2f7c032"),
Linux(:i686, :glibc) => ("$REMOTE_PATH/linux/32/preprocessor.tar.gz", "3e847abfd259e3d21a28a315da322f3b326910e8f1d198efdc0bd200eaea00ec"),
Linux(:x86_64, :glibc) => ("$REMOTE_PATH/linux/64/preprocessor.tar.gz", "bd31db8a0b29f43ba63d8df7a96cde5349851bd72c562200dbfa9d37f5606219"),
MacOS() => ("$REMOTE_PATH/osx/64/preprocessor.tar.gz", "001fa0ab957623b1e5b01b8b7563b92f960adda79027f054d1f72df8ad60c30b"),
Windows(:i686) => ("$REMOTE_PATH/windows/32/preprocessor.tar.gz", "1be8d8fc8cc798dec811f36525ff5b5fd6bf78e84be659068df30d4cf737eaac"),
Windows(:x86_64) => ("$REMOTE_PATH/windows/64/preprocessor.tar.gz", "32485a1dde052e97b7844d731af1f1c0c47c5154f22e29b71789ffe9a1f25e8c"),
)
for p in products
......
......@@ -77,6 +77,11 @@ immutable EquationTag
value::String
end
type TemporariesInfo
static::Vector{Int}
dynamic::Vector{Int}
end
type Model
fname::String
dname::String
......@@ -137,6 +142,7 @@ type Model
dynamic::Function
dynamic_params_derivs::Function
steady_state::Function
temporaries::TemporariesInfo
end
function dynare_model()
......@@ -181,24 +187,25 @@ function dynare_model()
0, # orig_maximum_exo_lead
0, # orig_maximum_exo_det_lag
0, # orig_maximum_exo_det_lead
Matrix{Int}(0,0), # lead_lag_incidence
zeros(Int64,3), # nnzderivatives
Matrix{Int}(0,0), # lead_lag_incidence
zeros(Int64,3), # nnzderivatives
false, # analytical_steady_state
false, # user_written_analytical_steady_state
false, # static_and_dynamic_models_differ
Vector{String}(), # equation_tags
Vector{Int}(), # exo_names_orig_ord
Matrix{Float64}(0,0), # sigma_e (Cov matrix of the structural innovations)
Matrix{Float64}(0,0), # correlation_matrix (Corr matrix of the structural innovations)
Matrix{Float64}(0,0), # h (Cov matrix of the measurement errors)
Matrix{Float64}(0,0), # correlation_matrix_me (Cov matrix of the measurement errors)
Matrix{Float64}(0,0), # sigma_e (Cov matrix of the structural innovations)
Matrix{Float64}(0,0), # correlation_matrix (Corr matrix of the structural innovations)
Matrix{Float64}(0,0), # h (Cov matrix of the measurement errors)
Matrix{Float64}(0,0), # correlation_matrix_me (Cov matrix of the measurement errors)
true, # sigma_e_is_diagonal
Vector{Float64}(), # params
function()end, # static
function()end, # static_params_derivs
function()end, # dynamic
function()end, # dynamic_params_derivs
function()end # steady_state
function()end, # steady_state
TemporariesInfo(zeros(Int,4),zeros(Int,4)) # temporaries
)
end
......
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