pac: collect exogenous variables in growth argument to pass exo use test in ModFile.cc

issue#70
Houtan Bastani 2019-05-17 15:06:16 +02:00
parent 51beb9c2ef
commit 2753ab9887
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 8 additions and 0 deletions

View File

@ -279,6 +279,13 @@ PacModelStatement::PacModelStatement(string name_arg,
{
}
void
PacModelStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings)
{
if (growth)
growth->collectVariables(SymbolType::exogenous, mod_file_struct.pac_params);
}
void
PacModelStatement::overwriteGrowth(expr_t new_growth)
{

View File

@ -152,6 +152,7 @@ public:
double steady_state_growth_rate_number_arg,
int steady_state_growth_rate_symb_id_arg,
const SymbolTable &symbol_table_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void overwriteGrowth(expr_t new_growth);
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;