Commit 27c9a9a5 authored by Houtan Bastani's avatar Houtan Bastani

store LHS of trend equation in trend_vars

parent 7a438a3c
......@@ -3510,7 +3510,6 @@ DynamicModel::updateVarAndTrendModel() const
{
}
int trend_var_symb_id = equations[eqn]->get_arg2()->findTrendVariable(lhs_symb_id);
trend_var.push_back(trend_var_symb_id);
if (trend_var_symb_id >= 0)
{
if (symbol_table.isAuxiliaryVariable(trend_var_symb_id))
......@@ -3528,6 +3527,7 @@ DynamicModel::updateVarAndTrendModel() const
exit(EXIT_FAILURE);
}
}
trend_var.push_back(trend_var_symb_id);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment