#include <deal.II/lac/block_vector.h>
#include <deal.II/lac/constraint_matrix.h>
-#ifdef DEAL_PREFER_MATRIX_EZ
-# include <deal.II/lac/sparse_matrix_ez.h>
-# include <deal.II/lac/block_sparse_matrix_ez.h>
-#else
-# include <deal.II/lac/sparsity_pattern.h>
-# include <deal.II/lac/block_sparsity_pattern.h>
-#endif
+#include <deal.II/lac/sparsity_pattern.h>
+#include <deal.II/lac/block_sparsity_pattern.h>
#include <deal.II/lac/vector_memory.h>
#include <deal.II/multigrid/mg_base.h>
{
std::size_t result = sizeof(*this);
result += sizeof(unsigned int) * sizes.size();
-#ifdef DEAL_PREFER_MATRIX_EZ
- std::vector<std_cxx1x::shared_ptr<SparseMatrixEZ<double> > >::const_iterator m;
- const std::vector<std_cxx1x::shared_ptr<SparseMatrixEZ<double> > >::const_iterator end = prolongation_matrices.end();
- for (m = prolongation_matrices.begin(); m != end ; ++m)
- result += *m->memory_consumption();
-#else
+
for (unsigned int i=0;i<prolongation_matrices.size();++i)
result += prolongation_matrices[i]->memory_consumption()
+ prolongation_sparsities[i]->memory_consumption();
-#endif
+
return result;
}
#include <deal.II/base/config.h>
#include <deal.II/lac/block_vector.h>
-#ifdef DEAL_PREFER_MATRIX_EZ
-# include <deal.II/lac/sparse_matrix_ez.h>
-# include <deal.II/lac/block_sparse_matrix_ez.h>
-#else
-# include <deal.II/lac/sparsity_pattern.h>
-# include <deal.II/lac/block_sparsity_pattern.h>
-#endif
+#include <deal.II/lac/sparsity_pattern.h>
+#include <deal.II/lac/block_sparsity_pattern.h>
#include <deal.II/lac/vector_memory.h>
#include <deal.II/lac/block_matrix_array.h>
#include <deal.II/lac/block_vector.h>
#include <deal.II/lac/constraint_matrix.h>
-#ifdef DEAL_PREFER_MATRIX_EZ
-# include <deal.II/lac/sparse_matrix_ez.h>
-# include <deal.II/lac/block_sparse_matrix_ez.h>
-#else
-# include <deal.II/lac/sparsity_pattern.h>
-# include <deal.II/lac/block_sparsity_pattern.h>
-#endif
+#include <deal.II/lac/sparsity_pattern.h>
+#include <deal.II/lac/block_sparsity_pattern.h>
#include <deal.II/lac/vector_memory.h>
#include <deal.II/multigrid/mg_base.h>