summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-13 11:14:37 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-13 11:14:37 +0100
commit23ccc50ab3608202452e44f287e4817ffa98227c (patch)
tree7a7cdb776cf054272a59d5bc962801d17343013b /src/common
parentf61d7c2c9f1148ee1bc749d1f7007f5c01f4ffb4 (diff)
Review all cout and cerr. cerr is reserved for warnings/error and cout for traces
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/gudhi/Debug_utils.h2
-rw-r--r--src/common/include/gudhi/reader_utils.h6
2 files changed, 4 insertions, 4 deletions
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<std::vector<Filtration_value>> 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