From 524e9a9c67dafa4d4933823b8c6893ad39691b09 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Tue, 7 Sep 2010 13:03:51 +0200
Subject: [PATCH] Preprocessor: change the automatically generated name of
 auxiliary vars for lagged endo/exo so that they contain the type-specific
 symbol ID (instead of the preprocessor internal symbol ID)

---
 preprocessor/SymbolTable.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preprocessor/SymbolTable.cc b/preprocessor/SymbolTable.cc
index 91e1b6f4cf..c054f95aa5 100644
--- a/preprocessor/SymbolTable.cc
+++ b/preprocessor/SymbolTable.cc
@@ -295,7 +295,7 @@ SymbolTable::addLagAuxiliaryVarInternal(bool endo, int orig_symb_id, int orig_le
     varname << "AUX_ENDO_LAG_";
   else
     varname << "AUX_EXO_LAG_";
-  varname << orig_symb_id << "_" << -orig_lead_lag;
+  varname << getTypeSpecificID(orig_symb_id)+1 << "_" << -orig_lead_lag;
 
   int symb_id;
   try
-- 
GitLab