]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
improve test
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2013 10:07:17 +0000 (10:07 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2013 10:07:17 +0000 (10:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@29868 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/mesh_worker_matrix_01.cc

index 81b9555612e0bd5c906134f10340fef7c968b70b..e95fe231a23273955217f725cf4b08832af9d49e 100644 (file)
@@ -123,16 +123,12 @@ template <int dim>
 void
 test_simple(DoFHandler<dim>& dofs, bool faces)
 {
-  TrilinosWrappers::SparsityPattern pattern;
   TrilinosWrappers::SparseMatrix matrix;
 
   const FiniteElement<dim>& fe = dofs.get_fe();
-  pattern.reinit (dofs.n_dofs(), dofs.n_dofs(),
-                 (GeometryInfo<dim>::faces_per_cell
-                  *GeometryInfo<dim>::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<dim> local;
   local.cells = true;

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.