From 23ccc50ab3608202452e44f287e4817ffa98227c Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Mon, 13 Jan 2020 11:14:37 +0100 Subject: Review all cout and cerr. cerr is reserved for warnings/error and cout for traces --- src/common/include/gudhi/Debug_utils.h | 2 +- src/common/include/gudhi/reader_utils.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/common/include') diff --git a/src/common/include/gudhi/Debug_utils.h b/src/common/include/gudhi/Debug_utils.h index 38abc06d..d4e66d8d 100644 --- a/src/common/include/gudhi/Debug_utils.h +++ b/src/common/include/gudhi/Debug_utils.h @@ -27,7 +27,7 @@ #define GUDHI_CHECK_code(CODE) #endif -#define PRINT(a) std::cerr << #a << ": " << (a) << " (DISP)" << std::endl +#define PRINT(a) std::cout << #a << ": " << (a) << " (DISP)" << std::endl // #define DBG_VERBOSE #ifdef DBG_VERBOSE diff --git a/src/common/include/gudhi/reader_utils.h b/src/common/include/gudhi/reader_utils.h index db31bf5c..ac9e987b 100644 --- a/src/common/include/gudhi/reader_utils.h +++ b/src/common/include/gudhi/reader_utils.h @@ -272,12 +272,12 @@ std::vector> read_lower_triangular_matrix_from_csv in.close(); #ifdef DEBUG_TRACES - std::cerr << "Here is the matrix we read : \n"; + std::cout << "Here is the matrix we read : \n"; for (size_t i = 0; i != result.size(); ++i) { for (size_t j = 0; j != result[i].size(); ++j) { - std::cerr << result[i][j] << " "; + std::cout << result[i][j] << " "; } - std::cerr << std::endl; + std::cout << std::endl; } #endif // DEBUG_TRACES -- cgit v1.2.3