]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reduce MeshWorker complexity by removing an undocumented preprocessor #define. 4749/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 Aug 2017 16:43:45 +0000 (10:43 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 9 Aug 2017 16:43:45 +0000 (10:43 -0600)
include/deal.II/meshworker/loop.h

index 5ebc6ed45509a57b378c45964b776cc5c9b5ee48..66afb8dac3bad814a0dae1ac612d4e995f5c79b2 100644 (file)
@@ -28,8 +28,6 @@
 
 #include <functional>
 
-#define DEAL_II_MESHWORKER_PARALLEL 1
-
 DEAL_II_NAMESPACE_OPEN
 
 template <typename> class TriaActiveIterator;
@@ -407,23 +405,12 @@ namespace MeshWorker
       }
 
     // Loop over all cells
-#ifdef DEAL_II_MESHWORKER_PARALLEL
     WorkStream::run(begin, end,
                     std::bind(&cell_action<INFOBOX, DOFINFO, dim, spacedim, ITERATOR>,
                               std::placeholders::_1, std::placeholders::_3, std::placeholders::_2,
                               cell_worker, boundary_worker, face_worker, lctrl),
                     std::bind(&internal::assemble<dim,DOFINFO,ASSEMBLER>, std::placeholders::_1, &assembler),
                     info, dof_info);
-#else
-    for (ITERATOR cell = begin; cell != end; ++cell)
-      {
-        cell_action<INFOBOX,DOFINFO,dim,spacedim>(cell, dof_info,
-                                                  info, cell_worker,
-                                                  boundary_worker, face_worker,
-                                                  lctrl);
-        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.