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).