Run detrending engine if trend variables are present, even if unused in a var(deflator=…) statement
Closes: #113master
parent
74e5bbf537
commit
1c813a1cf9
|
@ -2879,7 +2879,7 @@ DynamicModel::computeDynJacobianCols()
|
|||
for (const auto &[symb_lag, deriv_id] : deriv_id_table)
|
||||
{
|
||||
int symb_id{symb_lag.first};
|
||||
int tsid{symbol_table.getTypeSpecificID(symb_id)};
|
||||
int tsid{symbol_table.getTypeSpecificID(symb_id)}; // At this point, there is no trend_var
|
||||
if (SymbolType type{symbol_table.getType(symb_id)};
|
||||
type == SymbolType::exogenous)
|
||||
dyn_jacobian_cols_table[deriv_id] = ordered_dyn_endo.size() + tsid;
|
||||
|
|
|
@ -272,6 +272,10 @@ ParsingDriver::set_planner_discount_latex_name(string tex_name)
|
|||
void
|
||||
ParsingDriver::end_trend_var(bool log_trend, expr_t growth_factor, const vector<pair<string, string>> &symbol_list)
|
||||
{
|
||||
/* Run detrending engine if trend variables are present, even if unused in
|
||||
a var(deflator=…) statement (see #113). */
|
||||
mod_file->nonstationary_variables = true;
|
||||
|
||||
vector<int> declared_trend_vars;
|
||||
for (auto &[name, tex_name] : symbol_list)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue