From 612b2c39097bece2e01ab804d668de8a371892aa Mon Sep 17 00:00:00 2001 From: heister Date: Mon, 24 Jun 2013 10:07:17 +0000 Subject: [PATCH] improve test git-svn-id: https://svn.dealii.org/trunk@29868 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/mesh_worker_matrix_01.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/mpi/mesh_worker_matrix_01.cc b/tests/mpi/mesh_worker_matrix_01.cc index 81b9555612..e95fe231a2 100644 --- a/tests/mpi/mesh_worker_matrix_01.cc +++ b/tests/mpi/mesh_worker_matrix_01.cc @@ -123,16 +123,12 @@ template void test_simple(DoFHandler& dofs, bool faces) { - TrilinosWrappers::SparsityPattern pattern; TrilinosWrappers::SparseMatrix matrix; const FiniteElement& fe = dofs.get_fe(); - pattern.reinit (dofs.n_dofs(), dofs.n_dofs(), - (GeometryInfo::faces_per_cell - *GeometryInfo::max_children_per_face+1)*fe.dofs_per_cell); - DoFTools::make_flux_sparsity_pattern (dofs, pattern); - pattern.compress(); - matrix.reinit (pattern); + CompressedSimpleSparsityPattern csp(dofs.n_dofs(), dofs.n_dofs()); + DoFTools::make_flux_sparsity_pattern (dofs, csp); + matrix.reinit (dofs.locally_owned_dofs(), csp, MPI_COMM_WORLD, true); Local local; local.cells = true; -- 2.39.5