From 97fd1324a14ad64d26144ce1d25925a3feacccf5 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Thu, 15 Feb 2018 15:34:15 +0100 Subject: [PATCH] pac_expectation: accept exogenous variables for growth argument --- ParsingDriver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ParsingDriver.cc b/ParsingDriver.cc index b9d7131c..4e2ede10 100644 --- a/ParsingDriver.cc +++ b/ParsingDriver.cc @@ -2736,8 +2736,8 @@ ParsingDriver::add_pac_expectation_growth(string *arg) error("pac_expectation: you can only pass the growth option once"); check_symbol_existence(*arg); SymbolType type = mod_file->symbol_table.getType(mod_file->symbol_table.getID(*arg)); - if (type != eParameter && type != eEndogenous) - error("pac_expectation growth argument must either be a parameter or an endogenous variable."); + if (type != eParameter && type != eEndogenous && type != eExogenous) + error("pac_expectation growth argument must either be a parameter or an endogenous or exogenous variable."); pac_expectation_growth = *arg; delete arg; }