// $Id$
// Version: $Name$
//
-// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
+// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
-//TODO:[GK] Add all those little vectors.
unsigned int
MGTransferComponentBase::memory_consumption () const
{
unsigned int result = sizeof(*this);
- result += sizeof(unsigned int) * sizes.size();
- for (unsigned int i=0;i<prolongation_matrices.size();++i)
- result += prolongation_matrices[i]->memory_consumption()
- + prolongation_sparsities[i]->memory_consumption();
+ result += MemoryConsumption::memory_consumption(selected)
+ - sizeof(selected);
+ result += MemoryConsumption::memory_consumption(target_component)
+ - sizeof(mg_target_component);
+ result += MemoryConsumption::memory_consumption(sizes)
+ - sizeof(sizes);
+ result += MemoryConsumption::memory_consumption(component_start)
+ - sizeof(component_start);
+ result += MemoryConsumption::memory_consumption(mg_component_start)
+ - sizeof(mg_component_start);
+ result += MemoryConsumption::memory_consumption(prolongation_sparsities)
+ - sizeof(prolongation_sparsities);
+ result += MemoryConsumption::memory_consumption(prolongation_matrices)
+ - sizeof(prolongation_matrices);
+//TODO:[GK] Add this.
+// result += MemoryConsumption::memory_consumption(copy_to_and_from_indices)
+// - sizeof(copy_to_and_from_indices);
return result;
}
{
unsigned int result = sizeof(*this);
result += sizeof(unsigned int) * sizes.size();
- for (unsigned int i=0;i<prolongation_matrices.size();++i)
- result += prolongation_matrices[i]->memory_consumption()
- + prolongation_sparsities[i]->memory_consumption();
+ result += MemoryConsumption::memory_consumption(selected)
+ - sizeof(selected);
+ result += MemoryConsumption::memory_consumption(mg_block)
+ - sizeof(mg_block);
+ result += MemoryConsumption::memory_consumption(block_start)
+ - sizeof(block_start);
+ result += MemoryConsumption::memory_consumption(mg_block_start)
+ - sizeof(mg_block_start);
+ result += MemoryConsumption::memory_consumption(prolongation_sparsities)
+ - sizeof(prolongation_sparsities);
+ result += MemoryConsumption::memory_consumption(prolongation_matrices)
+ - sizeof(prolongation_matrices);
+//TODO:[GK] Add this.
+// result += MemoryConsumption::memory_consumption(copy_indices)
+// - sizeof(copy_indices);
return result;
}