]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add files.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 12 May 2003 16:25:35 +0000 (16:25 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 12 May 2003 16:25:35 +0000 (16:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@7634 0785d39b-7218-0410-832d-ea1e28bc413d

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

diff --git a/deal.II/deal.II/source/dofs/hp_dof_levels.cc b/deal.II/deal.II/source/dofs/hp_dof_levels.cc
new file mode 100644 (file)
index 0000000..858cbec
--- /dev/null
@@ -0,0 +1,45 @@
+//----------------------------  hp_dof_levels.cc  ---------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2003 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
+{
+  
+  unsigned int
+  hpDoFLevel<1>::memory_consumption () const
+  {
+    return MemoryConsumption::memory_consumption (line_dofs);
+  }
+
+
+
+  unsigned int
+  hpDoFLevel<2>::memory_consumption () const
+  {
+    return (hpDoFLevel<1>::memory_consumption () +
+            MemoryConsumption::memory_consumption (quad_dofs));
+  }
+
+
+
+  unsigned int
+  hpDoFLevel<3>::memory_consumption () const
+  {
+    return (hpDoFLevel<2>::memory_consumption () +
+            MemoryConsumption::memory_consumption (hex_dofs));
+  }
+}
diff --git a/deal.II/deal.II/source/fe/fe_collection.cc b/deal.II/deal.II/source/fe/fe_collection.cc
new file mode 100644 (file)
index 0000000..141c3fc
--- /dev/null
@@ -0,0 +1,30 @@
+//----------------------------  fe_collection.cc  ---------------------------
+//    $Id$
+//    Version: $Name$
+//
+//    Copyright (C) 2003 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.
+//
+//----------------------------  fe_collection.cc  ---------------------------
+
+#include <base/memory_consumption.h>
+#include <fe/fe_collection.h>
+
+
+template <int dim>
+unsigned int
+FECollection<dim>::memory_consumption () const
+{
+  return (sizeof(*this) +
+          MemoryConsumption::memory_consumption (finite_elements));
+}
+
+
+
+
+// explicit instantiations
+template class FECollection<deal_II_dimension>;

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.