]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an oversight
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 9 Apr 2014 10:02:32 +0000 (10:02 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 9 Apr 2014 10:02:32 +0000 (10:02 +0000)
git-svn-id: https://svn.dealii.org/trunk@32749 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/aligned_vector.h

index a9331d151d67b3144256a65144c70c686aa25409..06031a4fbe72ecf008104574327d7397e82b3205 100644 (file)
@@ -798,6 +798,7 @@ AlignedVector<T>::memory_consumption () const
   size_type memory = sizeof(*this);
   for (const T* t = _data ; t != _end_data; ++t)
     memory += dealii::MemoryConsumption::memory_consumption(*t);
+  memory += sizeof(T) * (_end_allocated-_end_data);
   return memory;
 }
 

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.