From d4520da4817cd80ceab73e27bc33e5d1b4a4f8b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 8 Dec 2010 11:33:20 +0100 Subject: [PATCH] Preprocessor: fix bug with varexo_det in conjunction with USE_DLL --- preprocessor/ExprNode.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 66a4c3a8f..0569dbd5f 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -677,11 +677,11 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, break; case oCDynamicModel: if (lag == 0) - output << "x[it_+" << i << "*nb_row_xd]"; + output << "x[it_+" << i << "*nb_row_x]"; else if (lag > 0) - output << "x[it_+" << lag << "+" << i << "*nb_row_xd]"; + output << "x[it_+" << lag << "+" << i << "*nb_row_x]"; else - output << "x[it_" << lag << "+" << i << "*nb_row_xd]"; + output << "x[it_" << lag << "+" << i << "*nb_row_x]"; break; case oMatlabStaticModel: case oMatlabStaticModelSparse: