From: Wolfgang Bangerth Date: Tue, 20 Dec 2005 05:25:57 +0000 (+0000) Subject: Make a few more, rather small and often called functions inline. X-Git-Tag: v8.0.0~12762 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=696c3e736816185cf3cf2cfddc5fc681f8ee7cb1;p=dealii.git Make a few more, rather small and often called functions inline. git-svn-id: https://svn.dealii.org/trunk@11893 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_accessor.templates.h b/deal.II/deal.II/include/dofs/dof_accessor.templates.h index 7c68f5e8c3..f769bf0ee2 100644 --- a/deal.II/deal.II/include/dofs/dof_accessor.templates.h +++ b/deal.II/deal.II/include/dofs/dof_accessor.templates.h @@ -1626,4 +1626,34 @@ DoFCellAccessor::child (const unsigned int i) const +template <> +inline +TriaIterator<1, DoFObjectAccessor<0,1,hpDoFHandler> > +DoFCellAccessor<1,hpDoFHandler>::face (const unsigned int) const +{ + Assert (false, ExcImpossibleInDim(1)); + return TriaIterator<1, DoFObjectAccessor<0,1, hpDoFHandler> >(); +} + + + +template <> +inline +TriaIterator<2, DoFObjectAccessor<1,2,hpDoFHandler> > +DoFCellAccessor<2,hpDoFHandler>::face (const unsigned int i) const +{ + return this->line(i); +} + + + +template <> +inline +TriaIterator<3, DoFObjectAccessor<2, 3, hpDoFHandler> > +DoFCellAccessor<3,hpDoFHandler>::face (const unsigned int i) const +{ + return this->quad(i); +} + + #endif diff --git a/deal.II/deal.II/source/dofs/hp_dof_accessor.cc b/deal.II/deal.II/source/dofs/hp_dof_accessor.cc index 1c63f8f06a..88522929c6 100644 --- a/deal.II/deal.II/source/dofs/hp_dof_accessor.cc +++ b/deal.II/deal.II/source/dofs/hp_dof_accessor.cc @@ -32,37 +32,18 @@ #if deal_II_dimension == 1 -template <> -TriaIterator<1, DoFObjectAccessor<0,1,hpDoFHandler> > -DoFCellAccessor<1,hpDoFHandler>::face (const unsigned int) const -{ - Assert (false, ExcImpossibleInDim(1)); - return TriaIterator<1, DoFObjectAccessor<0,1, hpDoFHandler> >(); -} #endif #if deal_II_dimension == 2 -template <> -TriaIterator<2, DoFObjectAccessor<1,2,hpDoFHandler> > -DoFCellAccessor<2,hpDoFHandler>::face (const unsigned int i) const -{ - return this->line(i); -} #endif #if deal_II_dimension == 3 -template <> -TriaIterator<3, DoFObjectAccessor<2, 3, hpDoFHandler> > -DoFCellAccessor<3,hpDoFHandler>::face (const unsigned int i) const -{ - return this->quad(i); -} #endif