From 04e319ac588ebfb71fabb5cf86cb1c58e89903cf Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Mon, 11 Jul 2016 12:05:19 +0200 Subject: [PATCH] use cout instead of printf in order to be able to redirect cout using rdbuf() --- src/minimizer.hpp | 2 +- src/root_finder.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minimizer.hpp b/src/minimizer.hpp index 0719d6f22..512f2e320 100644 --- a/src/minimizer.hpp +++ b/src/minimizer.hpp @@ -210,7 +210,7 @@ int Minimizer::minimize(const double start[dimension]) } while (status == GSL_CONTINUE && iter < max_iterations); #ifdef ENABLE_VERBOSE - printf("\tMinimization status = %s\n", gsl_strerror(status)); + std::cout << "\tMinimization status = " << gsl_strerror(status) << '\n'; #endif // save minimum point and function value diff --git a/src/root_finder.hpp b/src/root_finder.hpp index 2fa08e2fa..a189e026d 100644 --- a/src/root_finder.hpp +++ b/src/root_finder.hpp @@ -209,7 +209,7 @@ int Root_finder::find_root(const double start[dimension]) } while (status == GSL_CONTINUE && iter < max_iterations); #ifdef ENABLE_VERBOSE - printf("\tRoot_finder status = %s\n", gsl_strerror(status)); + std::cout << "\tRoot_finder status = " << gsl_strerror(status) << '\n'; #endif gsl_vector_memcpy(root, solver->x);