From 90d2f72205d7795e001c6879cfecbd42e31c84f4 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 12 May 2003 16:25:35 +0000 Subject: [PATCH] Add files. git-svn-id: https://svn.dealii.org/trunk@7634 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/hp_dof_levels.cc | 45 ++++++++++++++++++++ deal.II/deal.II/source/fe/fe_collection.cc | 30 +++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 deal.II/deal.II/source/dofs/hp_dof_levels.cc create mode 100644 deal.II/deal.II/source/fe/fe_collection.cc 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 index 0000000000..858cbec290 --- /dev/null +++ b/deal.II/deal.II/source/dofs/hp_dof_levels.cc @@ -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 +#include + + +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 index 0000000000..141c3fc83d --- /dev/null +++ b/deal.II/deal.II/source/fe/fe_collection.cc @@ -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 +#include + + +template +unsigned int +FECollection::memory_consumption () const +{ + return (sizeof(*this) + + MemoryConsumption::memory_consumption (finite_elements)); +} + + + + +// explicit instantiations +template class FECollection; -- 2.39.5