From bd892547916b90ff908117c47ab7657a34cb9ff9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 9 Apr 2014 18:33:24 +0200
Subject: [PATCH] Cosmetic change for clearer code.

---
 ModFile.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ModFile.cc b/ModFile.cc
index 7f31e86f..27299dea 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -585,9 +585,6 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
               << "M_.Correlation_matrix = eye(" << symbol_table.exo_nbr() << ", "
               << symbol_table.exo_nbr() << ");" << endl;
 
-  // Initialize M_.det_shocks
-  mOutputFile << "M_.det_shocks = [];" << endl;
-
   if (mod_file_struct.calibrated_measurement_errors)
     mOutputFile << "M_.H = zeros(" << symbol_table.observedVariablesNbr() << ", "
                 << symbol_table.observedVariablesNbr() << ");" << endl
@@ -597,6 +594,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
     mOutputFile << "M_.H = 0;" << endl
                 << "M_.Correlation_matrix_ME = 1;" << endl;
 
+  // Initialize M_.det_shocks
+  mOutputFile << "M_.det_shocks = [];" << endl;
+
   if (linear == 1)
     mOutputFile << "options_.linear = 1;" << endl;
 
-- 
GitLab