diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index 2213fbdd4f91320c6712338632f9e8318cb7db0b..cf12da4779cafab79010c2df9ce1ae69555b098d 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -6408,6 +6408,10 @@ DynamicModel::substituteDiff(vector<expr_t> &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).