From b6941477fa0fb243e6009be52f5277be7f48dc6f Mon Sep 17 00:00:00 2001
From: Robert Kloefkorn <robertk@cisl-canaveral.scd.ucar.edu>
Date: Wed, 3 Oct 2012 13:50:36 -0600
Subject: [PATCH] added some docu and some sizeof meassures.

---
 src/parallel/gitter_pll_impl.cc | 6 ++++--
 src/serial/ghost_info.h         | 8 ++++----
 src/serial/gitter_impl.cc       | 6 ++++--
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/parallel/gitter_pll_impl.cc b/src/parallel/gitter_pll_impl.cc
index 4f57480c9..eb8a55343 100644
--- a/src/parallel/gitter_pll_impl.cc
+++ b/src/parallel/gitter_pll_impl.cc
@@ -2211,7 +2211,8 @@ void GitterBasisPll :: printMemUsage ()
     cout << "VertexMacro = " << sizeof(VertexEmptyMacro) << endl;
     cout << "VertexGeo   = " << sizeof(VertexGeo) << endl;
     cout << "Vertex = " << sizeof(VertexEmpty) << endl;
-    cout << "Hbnd3_IMPL  = " << sizeof(hbndseg3_IMPL) << endl << endl;
+    cout << "Hbnd3_IMPL  = " << sizeof(hbndseg3_IMPL) << endl;
+    cout << "MacroGhostInfoTetra = " << sizeof(MacroGhostInfoTetra) << endl << endl;
 
     cout << "******** HEXA *************************8\n";
     cout << "Hexasize  = " << sizeof(hexa_IMPL) << endl;
@@ -2220,7 +2221,8 @@ void GitterBasisPll :: printMemUsage ()
     cout << "Hface4_IMPL = " << sizeof(hface4_IMPL) << endl;
     cout << "Hface4_GEO = " << sizeof( Gitter :: Geometric :: hface4_GEO ) << endl;
     cout << "Hface4::nb = " << sizeof( Gitter :: Geometric :: hface4 :: face4Neighbour ) << endl;
-    cout << "Hbnd4_IMPL  = " << sizeof(hbndseg4_IMPL) << endl << endl;
+    cout << "Hbnd4_IMPL  = " << sizeof(hbndseg4_IMPL) << endl;
+    cout << "MacroGhostInfoHexa = " << sizeof(MacroGhostInfoHexa) << endl << endl;
 
     cout << "******** Number of Elements ************************8\n";
     {
diff --git a/src/serial/ghost_info.h b/src/serial/ghost_info.h
index 99e29ef8f..94ad15141 100644
--- a/src/serial/ghost_info.h
+++ b/src/serial/ghost_info.h
@@ -34,16 +34,16 @@ public:
   
 protected:
   // coordiante of all non-internal points 
-  alucoord_t _p[points][3]; 
+  alucoord_t _p[points][3];  // 24 or 96 bytes
 
   // vertex idents of all vertices of element 
-  int _vx[noVx];
+  int _vx[noVx]; // 16 or 32 bytes 
 
   // vertex idents of all not internal vertices  
-  int _vxface[noFaceVx];
+  int _vxface[noFaceVx]; // 4 or 16 bytes 
 
   // face number of internal face 
-  int _fce;
+  int _fce; // 4 bytes 
 
   // do not allow copying
   MacroGhostInfoStorage(const MacroGhostInfoStorage & );
diff --git a/src/serial/gitter_impl.cc b/src/serial/gitter_impl.cc
index e717222c6..6891ecda8 100644
--- a/src/serial/gitter_impl.cc
+++ b/src/serial/gitter_impl.cc
@@ -580,7 +580,8 @@ void GitterBasisImpl :: printMemUsage ()
   cout << "VertexMacro = " << sizeof(VertexEmptyMacro) << endl;
   cout << "VertexGeo   = " << sizeof(VertexGeo) << endl;
   cout << "Vertex = " << sizeof(VertexEmpty) << endl;
-  cout << "Hbnd3_IMPL  = " << sizeof(hbndseg3_IMPL) << endl << endl;
+  cout << "Hbnd3_IMPL  = " << sizeof(hbndseg3_IMPL) << endl;
+  cout << "MacroGhostInfoTetra = " << sizeof(MacroGhostInfoTetra) << endl << endl;
 
   cout << "******** HEXA *************************8\n";
   cout << "Hexasize = " << sizeof(hexa_IMPL) << endl;
@@ -588,7 +589,8 @@ void GitterBasisImpl :: printMemUsage ()
   cout << "Hface4_IMPL = " << sizeof(hface4_IMPL) << endl;
   cout << "Hface4_GEO = " << sizeof( Gitter :: Geometric :: hface4_GEO ) << endl;
   cout << "Hface4::nb = " << sizeof( Gitter :: Geometric :: hface4 :: face4Neighbour ) << endl;
-  cout << "Hbnd4_IMPL  = " << sizeof(hbndseg4_IMPL) << endl << endl;
+  cout << "Hbnd4_IMPL  = " << sizeof(hbndseg4_IMPL) << endl;
+  cout << "MacroGhostInfoHexa = " << sizeof(MacroGhostInfoHexa) << endl << endl;
 
   cout << "******** Number of Elements ************************8\n";
   {
-- 
GitLab