]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Scott Miller's patch adding the unique_faces option
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Jun 2013 15:05:26 +0000 (15:05 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Jun 2013 15:05:26 +0000 (15:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@29741 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/meshworker/loop.h

index b4429031f7b371aeb2bb8b91a8151ef4a6e26876..d57f2a4a4684708aa69eef2d4e78de096c4364d9 100644 (file)
@@ -250,7 +250,8 @@ namespace MeshWorker
                                             typename INFOBOX::CellInfo &,
                                             typename INFOBOX::CellInfo &)>& face_worker,
             ASSEMBLER &assembler,
-            bool cells_first = true)
+            bool cells_first = true,
+            bool unique_faces_only = true)
   {
     DoFInfoBox<dim, DOFINFO> dof_info(dinfo);
 
@@ -266,7 +267,7 @@ namespace MeshWorker
     WorkStream::run(begin, end,
                     std_cxx1x::bind(&cell_action<INFOBOX, DOFINFO, dim, spacedim, ITERATOR>,
                                     std_cxx1x::_1, std_cxx1x::_3, std_cxx1x::_2,
-                                    cell_worker, boundary_worker, face_worker, cells_first, true),
+                                    cell_worker, boundary_worker, face_worker, cells_first, unique_faces_only),
                     std_cxx1x::bind(&internal::assemble<dim,DOFINFO,ASSEMBLER>, std_cxx1x::_1, &assembler),
                     info, dof_info);
 #else
@@ -276,7 +277,7 @@ namespace MeshWorker
                                                   info, cell_worker,
                                                   boundary_worker, face_worker,
                                                   cells_first,
-                                                  true);
+                                                  unique_faces_only);
         dof_info.assemble(assembler);
       }
 #endif

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.