Skip to content

Commit

Permalink
use cout instead of printf
Browse files Browse the repository at this point in the history
in order to be able to redirect cout using rdbuf()
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jul 11, 2016
1 parent d13591d commit 04e319a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/minimizer.hpp
Expand Up @@ -210,7 +210,7 @@ int Minimizer<dimension>::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
Expand Down
2 changes: 1 addition & 1 deletion src/root_finder.hpp
Expand Up @@ -209,7 +209,7 @@ int Root_finder<dimension>::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);
Expand Down

0 comments on commit 04e319a

Please sign in to comment.