]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Now also compiles if we use METIS.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Oct 2008 19:10:04 +0000 (19:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 Oct 2008 19:10:04 +0000 (19:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@17441 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_tools.cc

index 3b71e7911503d5dea5954c72af159b21a9c58850..b3308e23b1a525c285d75c86026acb1be5ab425c 100644 (file)
@@ -78,13 +78,15 @@ namespace SparsityTools
                                     // integers :-(
     std::vector<idxtype> int_rowstart (sparsity_pattern.get_rowstart_indices(),
                                       sparsity_pattern.get_rowstart_indices() +
-                                      sparsity_pattern.n_cols()+1);
-    std::vector<idxtype> int_colnums (sparsity_pattern.get_colnums(),
-                                     sparsity_pattern.get_colnums()+max_vec_len+1);
+                                      sparsity_pattern.n_rows()+1);
+    std::vector<idxtype> int_colnums (sparsity_pattern.get_column_numbers(),
+                                     sparsity_pattern.get_column_numbers()+
+                                     int_rowstart[sparsity_pattern.n_rows()]);
 
     std::vector<idxtype> 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

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.