* mapping and false when the finite element uses multiple mappings.
*/
bool
- single_mapping() const;
+ single_mapping_type() const;
/**
* Returns MappingType @p i for the finite element.
*/
MappingType
- get_mapping_type(unsigned int i) const;
+ get_mapping_type(const unsigned int i) const;
/* NOTE: The following function has its definition inlined into the class
declaration because we otherwise run into a compiler error with MS Visual
template <class PolynomialType, int dim, int spacedim>
bool
-FE_PolyTensor<PolynomialType, dim, spacedim>::single_mapping() const
+FE_PolyTensor<PolynomialType, dim, spacedim>::single_mapping_type() const
{
return mapping_type.size() == 1;
}
template <class PolynomialType, int dim, int spacedim>
MappingType
FE_PolyTensor<PolynomialType, dim, spacedim>::get_mapping_type(
- unsigned int i) const
+ const unsigned int i) const
{
- if (single_mapping())
+ if (single_mapping_type())
return mapping_type[0];
+
Assert(i < mapping_type.size(), ExcIndexRange(i, 0, mapping_type.size()));
return mapping_type[i];
}