From f8bd1ab949c415dd893e66196843bbecc4a5c2ce Mon Sep 17 00:00:00 2001 From: guido Date: Sun, 17 Jul 2005 21:03:33 +0000 Subject: [PATCH] Switch to DoFTools::compute_row_length_vector git-svn-id: https://svn.dealii.org/trunk@11156 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/dof_constraints_01.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/bits/dof_constraints_01.cc b/tests/bits/dof_constraints_01.cc index 0d4a3616d1..3ba24d98c2 100644 --- a/tests/bits/dof_constraints_01.cc +++ b/tests/bits/dof_constraints_01.cc @@ -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 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 A(sparsity), B(sparsity); -- 2.39.5