void generate_unit_points (const unsigned int,
std::vector<Point<dim> > &);
+#if deal_II_dimension == 1
template <>
void generate_unit_points (const unsigned int k,
std::vector<Point<1> > &p)
for (unsigned int i=0; i<p.size(); ++i)
p[i](0)=i*h;
}
+#endif
-
+#if deal_II_dimension == 2
template <>
void generate_unit_points (const unsigned int k,
std::vector<Point<2> > &p)
p[i](1)=points2d[start_index2d[k]+i][1];
}
}
+#endif
+#if deal_II_dimension == 3
template <>
void generate_unit_points (const unsigned int k,
std::vector<Point<3> > &p)
p[i](2)=points3d[start_index3d[k]+i][2];
}
}
+#endif
}
// the following two functions are not derived from a template in 1d
// and thus need no explicit instantiation
#if deal_II_dimension > 1
+template
+void VectorTools::interpolate_boundary_values<deal_II_dimension>
+(const Mapping<deal_II_dimension> &,
+ const DoFHandler<deal_II_dimension> &,
+ const FunctionMap<deal_II_dimension>::type &,
+ std::map<unsigned int,double> &,
+ const std::vector<bool> &);
+
template
void VectorTools::interpolate_boundary_values<deal_II_dimension>
(const Mapping<deal_II_dimension> &,
/**
* Character constant.
*/
- extern const char V = 'V';
+ static const char V = 'V';
/**
* Character constant.
*/
- extern const char T = 'T';
+ static const char T = 'T';
/**
* Character constant.
*/
- extern const char N = 'N';
+ static const char N = 'N';
/**
* Integer constant.
*/
- extern const int zero = 0;
+ static const int zero = 0;
/**
* Integer constant.
*/
- extern const int one = 1;
+ static const int one = 1;
}