]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Split out common functions that are needed for all space dimensions
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 2 May 2006 02:01:15 +0000 (02:01 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 2 May 2006 02:01:15 +0000 (02:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@12951 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_levels.all_dimensions.cc [new file with mode: 0644]
deal.II/deal.II/source/dofs/dof_levels.cc

diff --git a/deal.II/deal.II/source/dofs/dof_levels.all_dimensions.cc b/deal.II/deal.II/source/dofs/dof_levels.all_dimensions.cc
new file mode 100644 (file)
index 0000000..5f8db8f
--- /dev/null
@@ -0,0 +1,57 @@
+//---------------------------------------------------------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2000, 2001, 2002, 2003, 2005, 2006 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//---------------------------------------------------------------------------
+
+
+#include <base/exceptions.h>
+#include <base/memory_consumption.h>
+
+
+namespace internal
+{
+  namespace DoFHandler
+  {
+    
+    unsigned int
+    DoFLevel<0>::memory_consumption () const
+    {
+      return MemoryConsumption::memory_consumption (cell_dof_indices_cache);
+    }
+
+
+    unsigned int
+    DoFLevel<1>::memory_consumption () const
+    {
+      return (DoFLevel<0>::memory_consumption () +
+              MemoryConsumption::memory_consumption (line_dofs));
+    }
+
+
+
+    unsigned int
+    DoFLevel<2>::memory_consumption () const
+    {
+      return (DoFLevel<1>::memory_consumption () +
+              MemoryConsumption::memory_consumption (quad_dofs));
+    }
+
+
+
+    unsigned int
+    DoFLevel<3>::memory_consumption () const
+    {
+      return (DoFLevel<2>::memory_consumption () +
+              MemoryConsumption::memory_consumption (hex_dofs));
+    }
+  }
+  
+}
index 3d2cef25383c67aad493e91d73a55eeb058668ef..1ed76d3259da95da39d25403d6f1c7b795e234ed 100644 (file)
@@ -23,41 +23,6 @@ namespace internal
 {
   namespace DoFHandler
   {
-    
-    unsigned int
-    DoFLevel<0>::memory_consumption () const
-    {
-      return MemoryConsumption::memory_consumption (cell_dof_indices_cache);
-    }
-
-
-    unsigned int
-    DoFLevel<1>::memory_consumption () const
-    {
-      return (DoFLevel<0>::memory_consumption () +
-              MemoryConsumption::memory_consumption (line_dofs));
-    }
-
-
-
-    unsigned int
-    DoFLevel<2>::memory_consumption () const
-    {
-      return (DoFLevel<1>::memory_consumption () +
-              MemoryConsumption::memory_consumption (quad_dofs));
-    }
-
-
-
-    unsigned int
-    DoFLevel<3>::memory_consumption () const
-    {
-      return (DoFLevel<2>::memory_consumption () +
-              MemoryConsumption::memory_consumption (hex_dofs));
-    }
-
-
-
     template <int dim>
     unsigned int
     DoFLevel<1>::

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.