From: wolf Date: Tue, 1 Oct 2002 16:40:21 +0000 (+0000) Subject: Even better debug output. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02c10c606b7442d5df36f874a0943a73cc9f2c4c;p=dealii-svn.git Even better debug output. git-svn-id: https://svn.dealii.org/trunk@6576 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/hsl/source/detached_ma27.cc b/deal.II/contrib/hsl/source/detached_ma27.cc index 12f86199ac..0a000e5051 100644 --- a/deal.II/contrib/hsl/source/detached_ma27.cc +++ b/deal.II/contrib/hsl/source/detached_ma27.cc @@ -52,7 +52,8 @@ namespace CommunicationsLog Direction direction; const std::type_info* type; unsigned int count; - unsigned int completed; + unsigned int scheduled_bytes; + unsigned int completed_bytes; std::string description; }; @@ -62,10 +63,11 @@ namespace CommunicationsLog template void record_communication (const Direction direction, const unsigned int count, - const unsigned int completed, + const unsigned int completed_bytes, const std::string &descr) { - Record record = {direction, &typeid(T), count, completed, descr}; + Record record = {direction, &typeid(T), count, + sizeof(T)*count, completed_bytes, descr}; communication_log.push_back (record); }; @@ -77,11 +79,14 @@ namespace CommunicationsLog for (std::list::const_iterator i=communication_log.begin(); i!=communication_log.end(); ++i) - std::cerr << (i->direction == put ? "put" : "get") + std::cerr << "-- " + << (i->direction == put ? "put" : "get") << " " << i->count << " objects of type " << i->type->name() - << ", " << i->completed << " completed, description=" + << ", " << i->completed_bytes + << " of " << i->scheduled_bytes + << " bytes completed, description=" << i->description << std::endl; std::cerr << "------------------------------" << std::endl;