From e0acc669bdfce02baa94a0ff0372d72578fba177 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stepan@adjemian.io>
Date: Thu, 7 Mar 2019 15:24:42 +0100
Subject: [PATCH] Append a list of observed exogenous variables in M_ if varexo
 option status is used.

---
 src/SymbolTable.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/SymbolTable.cc b/src/SymbolTable.cc
index aa9f5bee..95ea527e 100644
--- a/src/SymbolTable.cc
+++ b/src/SymbolTable.cc
@@ -239,6 +239,8 @@ SymbolTable::writeOutput(ostream &output) const noexcept(false)
                 output << "' ";
               }
             output << "};" << endl;
+            if (it->first == "status")
+              output << "M_ = set_observed_exogenous_variables(M_);" << endl;
           }
     }
 
-- 
GitLab