]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move the stuff that is common to all space dimensions to their own file. This
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 2 May 2006 01:18:13 +0000 (01:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 2 May 2006 01:18:13 +0000 (01:18 +0000)
worked by accident before.

git-svn-id: https://svn.dealii.org/trunk@12947 0785d39b-7218-0410-832d-ea1e28bc413d

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

diff --git a/deal.II/deal.II/source/dofs/hp_dof_levels.all_dimensions.cc b/deal.II/deal.II/source/dofs/hp_dof_levels.all_dimensions.cc
new file mode 100644 (file)
index 0000000..8df4c72
--- /dev/null
@@ -0,0 +1,50 @@
+//----------------------------  hp_dof_levels.cc  ---------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2003, 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.
+//
+//----------------------------  hp_dof_levels.cc  ------------------------
+
+
+#include <base/memory_consumption.h>
+#include <dofs/hp_dof_levels.h>
+
+
+namespace internal
+{
+  namespace hp
+  {
+    unsigned int
+    DoFLevel<1>::memory_consumption () const
+    {
+      return (MemoryConsumption::memory_consumption (line_dofs) +
+              MemoryConsumption::memory_consumption (dof_line_index_offset));
+    }
+
+
+
+    unsigned int
+    DoFLevel<2>::memory_consumption () const
+    {
+      return (DoFLevel<1>::memory_consumption () +
+              MemoryConsumption::memory_consumption (quad_dofs) +
+              MemoryConsumption::memory_consumption (dof_quad_index_offset));
+    }
+
+
+
+    unsigned int
+    DoFLevel<3>::memory_consumption () const
+    {
+      return (DoFLevel<2>::memory_consumption () +
+              MemoryConsumption::memory_consumption (hex_dofs) +
+              MemoryConsumption::memory_consumption (dof_hex_index_offset));
+    }
+  }
+}
index aefa556a6fb17b546da04c6fe776dbe37b0eb337..4da48a1b5f9660e608a267dc1f1e5399942fb467 100644 (file)
@@ -22,36 +22,6 @@ namespace internal
 {
   namespace hp
   {
-    unsigned int
-    DoFLevel<1>::memory_consumption () const
-    {
-      return (MemoryConsumption::memory_consumption (line_dofs) +
-              MemoryConsumption::memory_consumption (dof_line_index_offset));
-    }
-
-
-
-    unsigned int
-    DoFLevel<2>::memory_consumption () const
-    {
-      return (DoFLevel<1>::memory_consumption () +
-              MemoryConsumption::memory_consumption (quad_dofs) +
-              MemoryConsumption::memory_consumption (dof_quad_index_offset));
-    }
-
-
-
-    unsigned int
-    DoFLevel<3>::memory_consumption () const
-    {
-      return (DoFLevel<2>::memory_consumption () +
-              MemoryConsumption::memory_consumption (hex_dofs) +
-              MemoryConsumption::memory_consumption (dof_hex_index_offset));
-    }
-    
-
-
-
     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.