]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a few more, rather small and often called functions inline.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 20 Dec 2005 05:25:57 +0000 (05:25 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 20 Dec 2005 05:25:57 +0000 (05:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@11893 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_accessor.templates.h
deal.II/deal.II/source/dofs/hp_dof_accessor.cc

index 7c68f5e8c37fce5a19da7a53b89840973e80bfbd..f769bf0ee2ee0940d223b806dc0fbb95cde67e7c 100644 (file)
@@ -1626,4 +1626,34 @@ DoFCellAccessor<dim,DH>::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
index 1c63f8f06a7edb69c0e441c554009771990c2223..88522929c6c657933e238f2ec623464ebc3038da 100644 (file)
 
 #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
 

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.