From 0bb233d291ea1ade8ac2ebfea2e70b9a58d1bb44 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 7 Nov 2019 14:17:49 -0500 Subject: [PATCH] fix bug causing auxiliary variables for pac growth parameters not to contain their original symbol id --- src/DynamicModel.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index 2213fbdd..cf12da47 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -6408,6 +6408,10 @@ DynamicModel::substituteDiff(vector &pac_growth) for (const auto & equation : equations) equation->findDiffNodes(diff_nodes); + for (const auto & gv : pac_growth) + if (gv != nullptr) + gv->findDiffNodes(diff_nodes); + /* Ensure that all diff operators appear once with their argument at current period (i.e. index 0 in the equivalence class, see comment above lag_equivalence_table_t in ExprNode.hh for details on the concepts).