]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move a few functions that are really trivial into the header file for simple inlining...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Jul 2006 15:17:44 +0000 (15:17 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 28 Jul 2006 15:17:44 +0000 (15:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@13466 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_objects.h
deal.II/deal.II/source/dofs/dof_objects.cc

index 5325f958f50f7dd289f2bf68cde54a0c6e4d958d..487417b302790f0135262a4d2b44cf2cee7fd9a2 100644 (file)
@@ -175,6 +175,36 @@ namespace internal
        template <int> friend class DoFFaces;   
     };
 
+
+// --------------------- template and inline functions ------------------
+
+    template <int dim>
+    template <int spacedim>
+    inline
+    unsigned int
+    DoFObjects<dim>::n_active_fe_indices (const ::DoFHandler<spacedim> &,
+                                         const unsigned) const
+    {
+      return 1;
+    }
+    
+
+    
+    template <int dim>
+    template <int spacedim>
+    inline
+    bool
+    DoFObjects<dim>::fe_index_is_active (const ::DoFHandler<spacedim> &,
+                                        const unsigned int,
+                                        const unsigned int fe_index) const
+    {
+      Assert (fe_index == 0,
+              ExcMessage ("Only zero fe_index values are allowed for "
+                          "non-hp DoFHandlers."));
+      return true;
+    }
+
+    
   }
 }
 #endif
index 3bf6313bf73b9c5425616b0e13594e82d9f67d22..b1734aa911f047e3c4a31f51e6e3ed8ca0991ed6 100644 (file)
@@ -29,28 +29,7 @@ namespace internal
       return (MemoryConsumption::memory_consumption (dofs));
     }
 
-    template <int dim>
-    template <int spacedim>
-    unsigned int
-    DoFObjects<dim>::n_active_fe_indices (const ::DoFHandler<spacedim> &,
-                                         const unsigned) const
-    {
-      return 1;
-    }
-    
 
-    template <int dim>
-    template <int spacedim>
-    bool
-    DoFObjects<dim>::fe_index_is_active (const ::DoFHandler<spacedim> &,
-                                        const unsigned int,
-                                        const unsigned int fe_index) const
-    {
-      Assert (fe_index == 0,
-              ExcMessage ("Only zero fe_index values are allowed for "
-                          "non-hp DoFHandlers."));
-      return true;
-    }
 
     template <int dim>
     template <int spacedim>
@@ -86,6 +65,7 @@ namespace internal
       return dofs[obj_index * dofs_per_obj + local_index];
     }
 
+    
 
     template <int dim>
     template <int spacedim>
@@ -143,19 +123,6 @@ namespace internal
                   const unsigned int       local_index,
                   const unsigned int       global_index);
 
-    template 
-    unsigned int
-    DoFObjects<1>::
-    n_active_fe_indices (const ::DoFHandler<deal_II_dimension> &,
-                        const unsigned) const;
-
-    template
-    bool
-    DoFObjects<1>::
-    fe_index_is_active (const ::DoFHandler<deal_II_dimension> &,
-                       const unsigned int,
-                       const unsigned int fe_index) const;
-
 #if deal_II_dimension >= 2
 
     template class DoFObjects<2>;
@@ -177,19 +144,6 @@ namespace internal
                   const unsigned int       local_index,
                   const unsigned int       global_index);
 
-    template 
-    unsigned int
-    DoFObjects<2>::
-    n_active_fe_indices (const ::DoFHandler<deal_II_dimension> &,
-                        const unsigned) const;
-
-    template
-    bool
-    DoFObjects<2>::
-    fe_index_is_active (const ::DoFHandler<deal_II_dimension> &,
-                       const unsigned int,
-                       const unsigned int fe_index) const;
-    
 #endif
 
 #if deal_II_dimension >= 3
@@ -213,19 +167,6 @@ namespace internal
                   const unsigned int       local_index,
                   const unsigned int       global_index);
 
-    template 
-    unsigned int
-    DoFObjects<3>::
-    n_active_fe_indices (const ::DoFHandler<deal_II_dimension> &,
-                        const unsigned) const;
-
-    template
-    bool
-    DoFObjects<3>::
-    fe_index_is_active (const ::DoFHandler<deal_II_dimension> &,
-                       const unsigned int,
-                       const unsigned int fe_index) const;
-
 #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.