From 7c8baba0646d13ad7902e84a2be65e37be273521 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan.bastani@ens.fr>
Date: Wed, 18 Jan 2012 12:08:21 +0100
Subject: [PATCH] warning output stream should be cerr

---
 ConfigFile.cc | 4 ++--
 ModFile.cc    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ConfigFile.cc b/ConfigFile.cc
index 3ad4600d..734c32c5 100644
--- a/ConfigFile.cc
+++ b/ConfigFile.cc
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010-2011 Dynare Team
+ * Copyright (C) 2010-2012 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -389,7 +389,7 @@ ConfigFile::checkPass() const
 #if !defined(_WIN32) && !defined(__CYGWIN32__)
       //For Linux/Mac, check that cpuNbr starts at 0
       if (it->second->minCpuNbr != 0)
-        cout << "WARNING: On Unix-based operating systems, you cannot specify the CPU that is used" << endl
+        cerr << "WARNING: On Unix-based operating systems, you cannot specify the CPU that is used" << endl
              << "         in parallel processing. This will be adjusted for you such that the same" << endl
              << "         number of CPUs are used." << endl;
 #endif
diff --git a/ModFile.cc b/ModFile.cc
index f03908db..e59b78f7 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2011 Dynare Team
+ * Copyright (C) 2006-2012 Dynare Team
  *
  * This file is part of Dynare.
  *
@@ -192,7 +192,7 @@ ModFile::checkPass()
           exit(EXIT_FAILURE);
         }
       else
-        cout << "WARNING: When estimating a DSGE-Var, declaring dsge_prior_weight as a parameter is deprecated. "
+        cerr << "WARNING: When estimating a DSGE-Var, declaring dsge_prior_weight as a parameter is deprecated. "
              <<  "The preferred method is to do this via the dsge_var option in the estimation statement." << endl;
 
       if (mod_file_struct.dsge_var_estimated || !mod_file_struct.dsge_var_calibrated.empty())
-- 
GitLab