From d98e4f19ccd85a23738d8c0ad90adf91957ccc7b Mon Sep 17 00:00:00 2001 From: Friedemann Zenke Date: Sun, 10 Aug 2014 13:23:09 +0200 Subject: [PATCH] Adds debug msgs to SparseConnection and DuplexConnection --- src/DuplexConnection.cpp | 6 ++++++ src/SparseConnection.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/DuplexConnection.cpp b/src/DuplexConnection.cpp index cfdcffc4..4744f4c7 100644 --- a/src/DuplexConnection.cpp +++ b/src/DuplexConnection.cpp @@ -139,6 +139,12 @@ void DuplexConnection::compute_reverse_matrix() << bkw->get_nonzero() << " different number of non-zero elements in bkw and fwd matrix."; logger->msg(oss.str(),ERROR); + } else { + oss.str(""); + oss << "DuplexConnection: ("<< get_name() << "): " + << bkw->get_nonzero() + << " elements processed."; + logger->msg(oss.str(),DEBUG); } } diff --git a/src/SparseConnection.cpp b/src/SparseConnection.cpp index 81642660..6321bee7 100644 --- a/src/SparseConnection.cpp +++ b/src/SparseConnection.cpp @@ -775,6 +775,12 @@ bool SparseConnection::load_from_file(ForwardMatrix * m, string filename, AurynL << m->get_nonzero() << " in matrix matrix."; logger->msg(oss.str(),ERROR); + } else { + oss.str(""); + oss << get_name() << ": OK, " + << pushback_count + << " elements pushed."; + logger->msg(oss.str(),DEBUG); } m->fill_zeros();