From d86e78ab01a6c7490fe656f02a53d073308802e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Hermes=29?= Date: Tue, 14 Jun 2016 10:29:10 +0200 Subject: [PATCH] Fixed dynamic model (julia output) The number of columns in the Jacobian matrix is the number of endogenous variables appearing at time t-1, t and t+1 plus the number of exogenous variables. --- preprocessor/DynamicModel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/DynamicModel.cc b/preprocessor/DynamicModel.cc index 8ec2e662f..6d68eb425 100644 --- a/preprocessor/DynamicModel.cc +++ b/preprocessor/DynamicModel.cc @@ -2414,7 +2414,7 @@ DynamicModel::writeDynamicModel(ostream &DynamicOutput, bool use_dll, bool julia << " steady_state::Vector{Float64}, it_::Int, " << "residual::Vector{Float64})" << endl << "#=" << endl << comments.str() << "=#" << endl - << " @assert length(y) == " << dynJacobianColsNbr << endl + << " @assert length(y)+size(x, 2) == " << dynJacobianColsNbr << endl << " @assert length(params) == " << symbol_table.param_nbr() << endl << " @assert length(residual) == " << nrows << endl << " #" << endl