From c598f4dde3675d3b3e1f4ba5be4b4c9abaeed3e9 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Sun, 20 Sep 2015 15:46:17 +0200 Subject: [PATCH] fixed another bug in col_id computation --- preprocessor/ExprNode.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 714255b1d..9fd0c0ebd 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -660,7 +660,7 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, output << "y" << LEFT_ARRAY_SUBSCRIPT(output_type) << i << RIGHT_ARRAY_SUBSCRIPT(output_type); break; case oCDynamic2Model: - i = symb_id + (lag+1)*datatree.symbol_table.endo_nbr() + ARRAY_SUBSCRIPT_OFFSET(output_type); + i = tsid + (lag+1)*datatree.symbol_table.endo_nbr() + ARRAY_SUBSCRIPT_OFFSET(output_type); output << "y" << LEFT_ARRAY_SUBSCRIPT(output_type) << i << RIGHT_ARRAY_SUBSCRIPT(output_type); break; case oCStaticModel: