From bb6bbe10e87b8576afd42e21d3fd19445d6469c9 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 (cherry picked from commit c977b666b36d981ec38fa2645df9eb5f58d7bb1a) Conflicts: preprocessor/ConfigFile.cc --- preprocessor/ConfigFile.cc | 4 ++-- preprocessor/ModFile.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/preprocessor/ConfigFile.cc b/preprocessor/ConfigFile.cc index 9ba7fb4d6..ad3828ca0 100644 --- a/preprocessor/ConfigFile.cc +++ b/preprocessor/ConfigFile.cc @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2011 Dynare Team + * Copyright (C) 2010-2012 Dynare Team * * This file is part of Dynare. * @@ -323,7 +323,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 " + cerr << "WARNING: On Unix-based operating systems, you cannot specify the CPU that is used " << "in parallel processing. This will be adjusted for you such that the same number of CPUs " << "are used." << endl; #endif diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index d38ee7c46..821613c00 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Dynare Team + * Copyright (C) 2006-2012 Dynare Team * * This file is part of Dynare. * @@ -168,7 +168,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