Commit de28e06b authored by Houtan Bastani's avatar Houtan Bastani
Browse files

bug fix: change order of the way we handle expectation operators and trend vars in transformpass

parent 891dd5e2
......@@ -226,6 +226,9 @@ ModFile::transformPass()
if (symbol_table.predeterminedNbr() > 0)
dynamic_model.transformPredeterminedVariables();
// Create auxiliary vars for Expectation operator
dynamic_model.substituteExpectation(mod_file_struct.partial_information);
if (nonstationary_variables)
{
dynamic_model.detrendEquations();
......@@ -233,9 +236,6 @@ ModFile::transformPass()
dynamic_model.removeTrendVariableFromEquations();
}
// Create auxiliary vars for Expectation operator
dynamic_model.substituteExpectation(mod_file_struct.partial_information);
if (mod_file_struct.stoch_simul_present
|| mod_file_struct.estimation_present
|| mod_file_struct.osr_present
......
Supports Markdown
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