Commit 0f0299bc authored by Houtan Bastani's avatar Houtan Bastani

fix to allow for diffs of unary ops to go through variable mapping

parent 0bb233d2
Pipeline #2325 passed with stages
in 2 minutes and 22 seconds
......@@ -5502,9 +5502,9 @@ DynamicModel::createVariableMapping(int orig_eq_nbr)
equations[ii]->collectVariables(SymbolType::exogenous, eqvars);
for (auto eqvar : eqvars)
{
while (symbol_table.isAuxiliaryVariable(eqvar))
eqvar = symbol_table.getOrigSymbIdForAuxVar(eqvar);
variableMapping[eqvar].emplace(ii);
eqvar = symbol_table.getUltimateOrigSymbID(eqvar);
if (eqvar >= 0 && !symbol_table.isAuxiliaryVariable(eqvar))
variableMapping[eqvar].emplace(ii);
}
}
}
......
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