DEAL_II_NAMESPACE_OPEN
-//TODO[RH]: Use StaticMappingQ1 where appropriate
+
template <int dim, class VECTOR, class DH>
void VectorTools::interpolate (const Mapping<dim> &mapping,
VECTOR &vec)
{
Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
- static const MappingQ1<dim> mapping;
- interpolate(mapping, dof, function, vec);
+ interpolate(StaticMappingQ1<dim>::mapping, dof, function, vec);
}
const bool project_to_boundary_first)
{
Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
- static const MappingQ1<dim> mapping;
- project(mapping, dof, constraints, quadrature, function, vec,
+ project(StaticMappingQ1<dim>::mapping, dof, constraints, quadrature, function, vec,
enforce_zero_boundary, q_boundary, project_to_boundary_first);
}
const std::vector<bool> &component_mask)
{
Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
- static const MappingQ1<dim> mapping;
- interpolate_boundary_values(mapping, dof, boundary_component,
+ interpolate_boundary_values(StaticMappingQ1<dim>::mapping, dof, boundary_component,
boundary_function, boundary_values, component_mask);
}
const std::vector<bool> &component_mask)
{
Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
- static const MappingQ1<dim> mapping;
- interpolate_boundary_values(mapping, dof, function_map,
+ interpolate_boundary_values(StaticMappingQ1<dim>::mapping, dof, function_map,
boundary_values, component_mask);
}
std::map<unsigned int,double> &boundary_values)
{
Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
- static const MappingQ1<dim> mapping;
- project_boundary_values(mapping, dof, boundary_functions, q, boundary_values);
+ project_boundary_values(StaticMappingQ1<dim>::mapping, dof, boundary_functions, q, boundary_values);
}
const unsigned int component)
{
Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping"));
- static const MappingQ1<dim> mapping;
- return compute_mean_value(mapping, dof, quadrature, v, component);
+ return compute_mean_value(StaticMappingQ1<dim>::mapping, dof, quadrature, v, component);
}
DEAL_II_NAMESPACE_CLOSE