From b7fe92c01260533ef03dd075c557fd6d7f9940b6 Mon Sep 17 00:00:00 2001 From: sebastien Date: Tue, 6 Oct 2009 08:56:02 +0000 Subject: [PATCH] preprocessor: always trigger creation of *_dynamic.m file when "identification" is present git-svn-id: https://www.dynare.org/svn/dynare/trunk@3021 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ModFile.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index 2829944a..dafba6b2 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -170,8 +170,8 @@ ModFile::computingPass(bool no_tmp_terms) { // Mod file may have no equation (for example in a standalone BVAR estimation) bool dynamic_model_needed = mod_file_struct.simul_present || mod_file_struct.check_present || mod_file_struct.stoch_simul_present - || mod_file_struct.estimation_present|| mod_file_struct.forecast_present || mod_file_struct.osr_present - || mod_file_struct.ramsey_policy_present; + || mod_file_struct.estimation_present|| mod_file_struct.forecast_present || mod_file_struct.osr_present + || mod_file_struct.ramsey_policy_present || mod_file_struct.identification_present; if (dynamic_model.equation_number() > 0) { // Compute static model and its derivatives @@ -217,8 +217,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all) const { ofstream mOutputFile; bool dynamic_model_needed = mod_file_struct.simul_present || mod_file_struct.check_present || mod_file_struct.stoch_simul_present - || mod_file_struct.estimation_present|| mod_file_struct.forecast_present || mod_file_struct.osr_present - || mod_file_struct.ramsey_policy_present; + || mod_file_struct.estimation_present|| mod_file_struct.forecast_present || mod_file_struct.osr_present + || mod_file_struct.ramsey_policy_present || mod_file_struct.identification_present; + if (basename.size()) { string fname(basename);