* @ingroup distributed
* @author Timo Heister, 2009-2011
*/
- template<int dim, typename VectorType, typename DoFHandlerType=DoFHandler<dim> >
+ template <int dim,
+ typename VectorType,
+ typename DoFHandlerType = DoFHandler<dim> >
class SolutionTransfer
{
+ static_assert (dim == DoFHandlerType::dimension,
+ "The dimension explicitly provided as a template "
+ "argument, and the dimension of the DoFHandlerType "
+ "template argument must match.");
public:
/**
* Constructor, takes the current DoFHandler as argument.
* @author Ralf Hartmann, 1999, Oliver Kayser-Herold and Wolfgang Bangerth,
* 2006, Wolfgang Bangerth 2014
*/
-template<int dim, typename VectorType=Vector<double>,
- typename DoFHandlerType=DoFHandler<dim> >
+template<int dim,
+ typename VectorType = Vector<double>,
+ typename DoFHandlerType = DoFHandler<dim> >
class SolutionTransfer
{
+ static_assert (dim == DoFHandlerType::dimension,
+ "The dimension explicitly provided as a template "
+ "argument, and the dimension of the DoFHandlerType "
+ "template argument must match.");
public:
/**