From 55b625b0168a200ee9ceb7cc7241ef3ed204fc25 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Fri, 12 Oct 2018 15:19:36 +0200
Subject: [PATCH] undiff expansion of var_expectation

---
 src/ModFile.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ModFile.cc b/src/ModFile.cc
index 1a36ca68..b3118309 100644
--- a/src/ModFile.cc
+++ b/src/ModFile.cc
@@ -532,7 +532,7 @@ ModFile::transformPass(bool nostrict, bool stochastic, bool compute_xrefs, const
       else if (trend_component_model_table.isExistingTrendComponentModelName(vems->aux_model_name))
         {
           max_lag = trend_component_model_table.getMaxLag(vems->aux_model_name) + 1;
-          lhs = trend_component_model_table.getLhs(vems->aux_model_name);
+          lhs = dynamic_model.getUndiffLHSForPac(vems->aux_model_name, diff_subst_table);
         }
       else
         {
-- 
GitLab