]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a nonsensical use of sizeof(). 3390/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 04:32:01 +0000 (23:32 -0500)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 04:32:01 +0000 (23:32 -0500)
include/deal.II/lac/block_vector_base.h

index a022f3e9a80af5286dac5be40d29917a8333a930..0bc19dd96a5441f0ff234253f5cf83c6f2ff716b 100644 (file)
@@ -2049,10 +2049,10 @@ template <class VectorType>
 std::size_t
 BlockVectorBase<VectorType>::memory_consumption () const
 {
-  std::size_t mem = sizeof(this->n_blocks());
+  std::size_t mem = MemoryConsumption::memory_consumption (this->block_indices);
   for (size_type i=0; i<this->components.size(); ++i)
     mem += MemoryConsumption::memory_consumption (this->components[i]);
-  mem += MemoryConsumption::memory_consumption (this->block_indices);
+
   return mem;
 }
 

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.