Skip to content

Commit

Permalink
Adds debug msgs to SparseConnection and DuplexConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedemann Zenke committed Aug 10, 2014
1 parent 5094c18 commit d98e4f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/DuplexConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

6 changes: 6 additions & 0 deletions src/SparseConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d98e4f1

Please sign in to comment.