]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Move some of the functions into a .all_dimensions.cc file.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Jan 2007 00:18:08 +0000 (00:18 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Jan 2007 00:18:08 +0000 (00:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@14321 0785d39b-7218-0410-832d-ea1e28bc413d

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

diff --git a/deal.II/deal.II/source/dofs/dof_objects.all_dimensions.cc b/deal.II/deal.II/source/dofs/dof_objects.all_dimensions.cc
new file mode 100644 (file)
index 0000000..999cf31
--- /dev/null
@@ -0,0 +1,42 @@
+//---------------------------------------------------------------------------
+//    $Id: dof_objects.cc 14220 2006-12-04 23:49:48Z bangerth $
+//    Version: $Name$
+//
+//    Copyright (C) 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>
+#include <dofs/dof_objects.h>
+#include <dofs/dof_handler.h>
+#include <fe/fe.h>
+
+DEAL_II_NAMESPACE_OPEN
+
+namespace internal
+{
+  namespace DoFHandler
+  {
+    template <int dim>
+    unsigned int
+    DoFObjects<dim>::memory_consumption () const
+    {
+      return (MemoryConsumption::memory_consumption (dofs));
+    }
+
+
+    // explicit instantiations
+    template unsigned int DoFObjects<1>::memory_consumption () const;
+    template unsigned int DoFObjects<2>::memory_consumption () const;
+    template unsigned int DoFObjects<3>::memory_consumption () const;
+  }
+}
+
+DEAL_II_NAMESPACE_CLOSE
index 25693d6918b79b41110e1a7f0a0eb3d60b3dcb10..ea78a5430a1be29186d72afb5b216095f614c9ed 100644 (file)
@@ -24,15 +24,6 @@ namespace internal
 {
   namespace DoFHandler
   {
-    template<int dim>
-    unsigned int
-    DoFObjects<dim>::memory_consumption () const
-    {
-      return (MemoryConsumption::memory_consumption (dofs));
-    }
-
-
-
     template <int dim>
     template <int spacedim>
     void

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.