]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
on our way...
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2013 10:00:53 +0000 (10:00 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2013 10:00:53 +0000 (10:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@29867 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/mesh_worker_matrix_01.cc

index e1c69284cdc81d2d53a32440cf8691427a452f12..81b9555612e0bd5c906134f10340fef7c968b70b 100644 (file)
@@ -25,6 +25,7 @@
 #include <deal.II/lac/sparse_matrix.h>
 #include <deal.II/lac/trilinos_sparse_matrix.h>
 #include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/filtered_iterator.h>
 #include <deal.II/dofs/dof_tools.h>
 #include <deal.II/fe/mapping_q1.h>
 #include <deal.II/fe/fe_q.h>
@@ -149,8 +150,13 @@ test_simple(DoFHandler<dim>& dofs, bool faces)
   MeshWorker::Assembler::MatrixSimple<TrilinosWrappers::SparseMatrix> assembler;
   assembler.initialize(matrix);
   
+  FilteredIterator<typename DoFHandler<dim>::active_cell_iterator>
+    cell(IteratorFilters::LocallyOwnedCell(), dofs.begin_active());
+  FilteredIterator<typename DoFHandler<dim>::active_cell_iterator>
+    end(IteratorFilters::LocallyOwnedCell(), dofs.end());
+
   MeshWorker::loop<dim, dim, MeshWorker::DoFInfo<dim>, MeshWorker::IntegrationInfoBox<dim> >
-    (dofs.begin_active(), dofs.end(),
+    (cell, end,
      dof_info, info_box,
      std_cxx1x::bind (&Local<dim>::cell, local, std_cxx1x::_1, std_cxx1x::_2),
      std_cxx1x::bind (&Local<dim>::bdry, local, std_cxx1x::_1, std_cxx1x::_2),

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.