From: Martin Kronbichler Date: Wed, 9 Apr 2014 10:02:32 +0000 (+0000) Subject: Fix an oversight X-Git-Tag: v8.2.0-rc1~624 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de9077c2cc3f9d7f3c11eb43d806f11a4561995;p=dealii.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; }