From f22d08c0b12bb1f30d8e28ff939e4e7f8eb114f3 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 31 Oct 2008 19:10:04 +0000 Subject: [PATCH] Now also compiles if we use METIS. git-svn-id: https://svn.dealii.org/trunk@17441 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparsity_tools.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/deal.II/lac/source/sparsity_tools.cc b/deal.II/lac/source/sparsity_tools.cc index 3b71e79115..b3308e23b1 100644 --- a/deal.II/lac/source/sparsity_tools.cc +++ b/deal.II/lac/source/sparsity_tools.cc @@ -78,13 +78,15 @@ namespace SparsityTools // integers :-( std::vector int_rowstart (sparsity_pattern.get_rowstart_indices(), sparsity_pattern.get_rowstart_indices() + - sparsity_pattern.n_cols()+1); - std::vector int_colnums (sparsity_pattern.get_colnums(), - sparsity_pattern.get_colnums()+max_vec_len+1); + sparsity_pattern.n_rows()+1); + std::vector int_colnums (sparsity_pattern.get_column_numbers(), + sparsity_pattern.get_column_numbers()+ + int_rowstart[sparsity_pattern.n_rows()]); std::vector int_partition_indices (sparsity_pattern.n_rows()); - // Select which type of partitioning to create + // Select which type of partitioning to + // create // Use recursive if the number of // partitions is less than or equal to 8 -- 2.39.5