]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid the gratuitous use of the preprocessor. Use an explicit specialization instead.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 12 Dec 2007 17:29:53 +0000 (17:29 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 12 Dec 2007 17:29:53 +0000 (17:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@15594 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_raviart_thomas.h
deal.II/deal.II/source/fe/fe_raviart_thomas.cc

index 336ada9d2945cba77e064360f48c902089b56efb..437569dd18e09b7d620d7f1f7a7b52fd6eb7e922 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2003, 2004, 2005, 2006, 2007 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -459,6 +459,9 @@ class FE_RaviartThomasNodal
 
 template <>
 std::vector<unsigned int> FE_RaviartThomas<1>::get_dpo_vector (const unsigned int);
+template <>
+void
+FE_RaviartThomas<1>::initialize_restriction();
 
 #endif // DOXYGEN
 
index f4e1273981499af39182e9f55902288bd79ef1a0..f1a157a08e97a84210f441bc54b3060e8ad1ba29 100644 (file)
@@ -257,15 +257,15 @@ FE_RaviartThomas<dim>::initialize_support_points (const unsigned int deg)
 
 #if deal_II_dimension == 1
 
-template <int dim>
+template <>
 void
-FE_RaviartThomas<dim>::initialize_restriction()
+FE_RaviartThomas<1>::initialize_restriction()
 {
-  for (unsigned int i=0;i<GeometryInfo<dim>::children_per_cell;++i)
+  for (unsigned int i=0;i<GeometryInfo<1>::children_per_cell;++i)
     this->restriction[i].reinit(0,0);
 }
 
-#else
+#endif
 
 // This function is the same Raviart-Thomas interpolation performed by
 // interpolate. Still, we cannot use interpolate, since it was written
@@ -396,7 +396,6 @@ FE_RaviartThomas<dim>::initialize_restriction()
     delete polynomials[d];
 }
 
-#endif
 
 #if deal_II_dimension == 1
 

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.