diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index 6026e5146fa9259c64cb8c8aa1b12135405e326c..dd8f62cea32d4d869a8e4f39704064e48294b269 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -2994,13 +2994,13 @@ DynamicModel::writeDriverOutput(ostream &output, const string &basename, bool bl if (auto it = nonstationary_symbols_map.find(symb_id); it != nonstationary_symbols_map.end()) { auto [is_log, deflator] = it->second; - output << "M_.endo_trends(" << i << ")." + output << "M_.endo_trends(" << i+1 << ")." << (is_log ? "log_deflator" : "deflator") << " = '"; deflator->writeJsonOutput(output, {}, {}); output << "';" << endl; auto growth_factor = const_cast<DynamicModel *>(this)->AddDivide(deflator, deflator->decreaseLeadsLags(1))->removeTrendLeadLag(trend_symbols_map)->replaceTrendVar(); - output << "M_.endo_trends(" << i << ")." + output << "M_.endo_trends(" << i+1 << ")." << (is_log ? "log_growth_factor" : "growth_factor") << " = '"; growth_factor->writeJsonOutput(output, {}, {}); output << "';" << endl;