Preprocessor: fix bug with varexo_det in conjunction with USE_DLL

time-shift
Sébastien Villemot 2010-12-08 11:33:20 +01:00
parent 9b166fdb08
commit d4520da481
1 changed files with 3 additions and 3 deletions

View File

@ -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: