]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Switch to DoFTools::compute_row_length_vector
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Jul 2005 21:03:33 +0000 (21:03 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Jul 2005 21:03:33 +0000 (21:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@11156 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/dof_constraints_01.cc

index 0d4a3616d1df0837b8c88326cb9e92aab5b987fa..3ba24d98c2750902e32011c1fa7e666d18fd379e 100644 (file)
@@ -69,9 +69,9 @@ void test ()
 
                                    // then set up a sparsity pattern and two
                                    // matrices on top of it
-  SparsityPattern sparsity (dof_handler.n_dofs(),
-                            dof_handler.n_dofs(),
-                            dof_handler.max_couplings_between_dofs());
+  std::vector<unsigned int> row_lengths(dof_handler.n_dofs());
+  DoFTools::compute_row_length_vector(dof_handler, row_lengths);
+  SparsityPattern sparsity (dof_handler.n_dofs(), dof_handler.n_dofs(), row_lengths);
   DoFTools::make_sparsity_pattern (dof_handler, sparsity);
   constraints.condense (sparsity);
   SparseMatrix<double> A(sparsity), B(sparsity);

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.