]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
additional data
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 27 May 2007 23:17:26 +0000 (23:17 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 27 May 2007 23:17:26 +0000 (23:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@14722 0785d39b-7218-0410-832d-ea1e28bc413d

tests/benchmarks/dof_handler_size.cc

index e40e3bbf845fcf22046a75b8436e68a4870597a5..b772ffecdba2667216b66068d74b2ad0f85b5213 100644 (file)
@@ -11,6 +11,8 @@
 //
 //----------------------------------------------------------------------
 
+#include <iomanip>
+
 #include <base/logstream.h>
 #include <grid/tria.h>
 #include <grid/grid_generator.h>
@@ -30,9 +32,10 @@ void check ()
   GridGenerator::hyper_cube(tr);
   tr.refine_global(18/dim);
 
-  deallog << "Cells " << tr.n_cells()
-         << " active " << tr.n_active_cells()
-         << " memory " << tr.memory_consumption()
+  deallog << "Cells " << std::setw(12)  << tr.n_cells()
+         << " active " << std::setw(12)  << tr.n_active_cells()
+         << " memory " << std::setw(12)  << tr.memory_consumption()
+         << " quotient " << (1./tr.n_cells()*tr.memory_consumption())
          << std::endl;
 
   FE_Q<dim> q1(1);
@@ -42,23 +45,27 @@ void check ()
   DoFHandler<dim> dof(tr);
   
   dof.distribute_dofs(q1);
-  deallog << "Dofs Q1 " << dof.n_dofs()
-         << " memory " << dof.memory_consumption()
+  deallog << "Dofs Q1   " << std::setw(12) << dof.n_dofs()
+         << " memory " << std::setw(12) << dof.memory_consumption()
+         << " quotient " << (1./dof.n_dofs()*dof.memory_consumption())
          << std::endl;
   
   dof.distribute_dofs(q3);
-  deallog << "Dofs Q3 " << dof.n_dofs()
-         << " memory " << dof.memory_consumption()
+  deallog << "Dofs Q3   " << std::setw(12) << dof.n_dofs()
+         << " memory " << std::setw(12) << dof.memory_consumption()
+         << " quotient " << (1./dof.n_dofs()*dof.memory_consumption())
          << std::endl;
   
   dof.distribute_dofs(sys1);
-  deallog << "Dofs Sys1 " << dof.n_dofs()
-         << " memory " << dof.memory_consumption()
+  deallog << "Dofs Sys1 " << std::setw(12) << dof.n_dofs()
+         << " memory " << std::setw(12) << dof.memory_consumption()
+         << " quotient " << (1./dof.n_dofs()*dof.memory_consumption())
          << std::endl;  
   
   dof.distribute_dofs(sys2);
-  deallog << "Dofs Sys2 " << dof.n_dofs()
-         << " memory " << dof.memory_consumption()
+  deallog << "Dofs Sys2 " << std::setw(12) << dof.n_dofs()
+         << " memory " << std::setw(12) << dof.memory_consumption()
+         << " quotient " << (1./dof.n_dofs()*dof.memory_consumption())
          << 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.