]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Even better debug output.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Oct 2002 16:40:21 +0000 (16:40 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Oct 2002 16:40:21 +0000 (16:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@6576 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/hsl/source/detached_ma27.cc

index 12f86199ac60a5c810d18223c449de6c66cf66dd..0a000e50515b082409af7dea910d6c1f9f9843c3 100644 (file)
@@ -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 <typename T>
   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<Record>::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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.