]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
size adjusted
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Dec 2003 15:15:41 +0000 (15:15 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Dec 2003 15:15:41 +0000 (15:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@8250 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector_memory.h

index f3bd1a81ab135899cf40b220e00c51e712f6bc48..2248b7b4a311987146e08d8dea58edd9a3045cda 100644 (file)
@@ -293,7 +293,7 @@ GrowingVectorMemory<VECTOR>::memory_consumption () const
     end = pool.end();
   for (typename std::vector<entry_type>::const_iterator i = pool.begin()
                                                     ; i != end ; ++i)
-    result += i->second->memory_consumption();
+    result += sizeof (*i) + i->second->memory_consumption();
 }
 
 #endif

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.