From eea1bcc27c62e9eea84bb35d82ae91c37d236cf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Tue, 5 Oct 2010 15:28:15 +0200 Subject: [PATCH] k-order DLL: fix bug related to number of rows of matrix of endogenous (nb_row_x was incorrectly initialized in dynamic C file) --- mex/sources/k_order_perturbation/dynamic_dll.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mex/sources/k_order_perturbation/dynamic_dll.cc b/mex/sources/k_order_perturbation/dynamic_dll.cc index ffc5649d4..8aae1c729 100644 --- a/mex/sources/k_order_perturbation/dynamic_dll.cc +++ b/mex/sources/k_order_perturbation/dynamic_dll.cc @@ -92,7 +92,7 @@ void DynamicModelDLL::eval(const Vector &y, const Vector &x, const Vector &modParams, const Vector &ySteady, Vector &residual, TwoDMatrix *g1, TwoDMatrix *g2, TwoDMatrix *g3) throw (DynareException) { - Dynamic(y.base(), x.base(), nExog, modParams.base(), ySteady.base(), 0, residual.base(), + Dynamic(y.base(), x.base(), 1, modParams.base(), ySteady.base(), 0, residual.base(), g1 == NULL ? NULL : g1->base(), g2 == NULL ? NULL : g2->base(), g3 == NULL ? NULL : g3->base()); }