#include <iterator>
-// Integer to the power of dim
-template <int dim>
-inline unsigned int dimpow (unsigned int n)
+namespace
{
- unsigned int result = n;
- for (unsigned int i=1;i<dim;++i)
- result *= n;
- return result;
+/**
+ * Integer to the power of dim
+ */
+ template <int dim>
+ inline unsigned int dimpow (unsigned int n)
+ {
+ unsigned int result = n;
+ for (unsigned int i=1;i<dim;++i)
+ result *= n;
+ return result;
+ }
}
+
template <>
Quadrature<0>::Quadrature (const unsigned int)
: n_quadrature_points(0)
// for all lower dimensions as well. That is why in this file the check
// is for deal_II_dimension >= any_number and not for ==
-
-template <typename number>
-number abs (const number a)
+namespace
{
- return ((a>0) ? a : -a);
+ template <typename number>
+ number abs (const number a)
+ {
+ return ((a>0) ? a : -a);
+ }
}
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