make simplifications in dynamic model before copying to original

parent 90c45b2c
Pipeline #678 passed with stage
in 1 minute and 21 seconds
......@@ -366,12 +366,11 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, const
{
// Save the original model (must be done before any model transformations by preprocessor)
// - except adl and diff which we always want expanded
dynamic_model.simplifyEquations();
dynamic_model.substituteAdl();
dynamic_model.setLeadsLagsOrig();
original_model = dynamic_model;
dynamic_model.simplifyEquations();
if (nostrict)
{
set<int> unusedEndogs = dynamic_model.findUnusedEndogenous();
......
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