]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove dead code
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jan 2014 13:34:19 +0000 (13:34 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jan 2014 13:34:19 +0000 (13:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@32151 0785d39b-7218-0410-832d-ea1e28bc413d

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

index a8d63b9a501fb26d275d0180ba338fcdfc0d3ac9..8b362bdf7f206a4dc8c319964313a09bc5412c80 100644 (file)
@@ -129,74 +129,8 @@ namespace MeshWorker
        * face integrals. Default is t
        */
       bool cells_first;
-
-      /**
-       * Based on the flags in this class, decide if this face needs to be
-       * assembled.
-       */
-      template <class ITERATOR>
-      bool operator() (const ITERATOR& cell, unsigned int face, bool is_level) const;
-      /**
-       * Based on the flags in this class, decide if this cell needs to be
-       * assembled.
-       */
-      template <class ITERATOR>
-      bool operator() (const ITERATOR& cell, bool is_level) const;
   };
   
-  
-  template <class ITERATOR>
-  bool LoopControl::operator() (const ITERATOR& cell, unsigned int face, bool is_level) const
-  {
-    const ITERATOR neighbor = cell->neighbor(face);
-    const bool c_local = (is_level)
-                        ? (cell->is_locally_owned())
-                        : (cell->is_locally_owned_on_level());
-    const bool n_local = (is_level)
-                        ? (neighbor->is_locally_owned())
-                        : (neighbor->is_locally_owned_on_level());
-    
-    if (!c_local && !n_local)
-      return false;
-
-    if (c_local && n_local)
-      {
-        if (own_faces==LoopControl::never)
-          return false;
-
-        //TODO:
-//        if (cell->neighbor_is_coarser(face_no))
-//          return false;
-
-        if (own_faces==LoopControl::one && neighbor < cell)
-          return false;
-
-        Assert(own_faces==LoopControl::both, ExcInternalError());
-        return true;
-      }
-    else
-      {
-        // interface between owned and ghost cell
-
-        // TODO
-
-
-      }
-  }
-  template <class ITERATOR>
-  bool LoopControl::operator() (const ITERATOR &cell, bool is_level) const
-  {
-    const bool c_local = (is_level)
-                        ? (cell->is_locally_owned())
-                        : (cell->is_locally_owned_on_level());
-    if (own_cells && c_local)
-      return true;
-    if (ghost_cells && cell->is_ghost())
-      return true;
-    return false;
-  }
-
-
 
 
   /**

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.