From: kronbichler Date: Wed, 9 Apr 2014 10:02:32 +0000 (+0000) Subject: Fix an oversight X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=682ca3e4c932eeb932a600fce8d587d5fe6a35bd;p=dealii-svn.git Fix an oversight git-svn-id: https://svn.dealii.org/trunk@32749 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/aligned_vector.h b/deal.II/include/deal.II/base/aligned_vector.h index a9331d151d..06031a4fbe 100644 --- a/deal.II/include/deal.II/base/aligned_vector.h +++ b/deal.II/include/deal.II/base/aligned_vector.h @@ -798,6 +798,7 @@ AlignedVector::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; }