* Export the value of the template parameter as a static member constant.
* Sometimes useful for some expression template programming.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Number of vector components.
* Export the value of the template parameter as a static member constant.
* This is sometimes useful in the context of template programming.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* The scalar-valued real type used for representing time.
* Access to the dimension of this object, for checking and automatic
* setting of dimension in other classes.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Constructor. <tt>pols</tt> is a vector of pointers to one-dimensional
/**
* Make the dimension available to the outside.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Get the standard Lagrange basis for a specified degree.
* Access to the dimension of this object, for checking and automatic
* setting of dimension in other classes.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Constructor. Creates all basis functions of $P_p$. @arg p: the degree of
/**
* Make the dimension available to the outside.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/*
* Constructor taking the polynomial @p degree as input.
/**
* Dimension we are working in.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Constructor, checking that the basis is implemented in this dimension.
/**
* Make the dimension available to the outside.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/*
* Constructor taking the polynomial @p degree as input.
* of an inlined function; the compiler may therefore produce more efficient
* code and you may use this value to declare other data types.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Publish the rank of this tensor to the outside world.
* Access to the dimension of this object, for checking and automatic
* setting of dimension in other classes.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Constructor. <tt>pols</tt> is a vector of objects that should be derived
* Access to the dimension of this object, for checking and automatic
* setting of dimension in other classes.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Constructor. <tt>pols</tt> is a vector of objects that should be derived
* Access to the dimension of this object, for checking and automatic
* setting of dimension in other classes.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Constructor. <tt>pols</tt> is a vector of objects that should be derived
* Type definition for the dimension of the associated input and output
* tensor types.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Type definition for the floating point number type that is used in,
* A static variable that allows users of this class to discover the value
* of the second template argument.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* A static variable that allows users of this class to discover the value
* of the third template argument.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Declare an alias to the base class to make accessing some of the
* A static variable that allows users of this class to discover the value
* of the second template argument.
*/
- static const unsigned int dimension = 1;
+ static constexpr unsigned int dimension = 1;
/**
* A static variable that allows users of this class to discover the value
* of the third template argument.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Declare an alias to the base class to make accessing some of the
/**
* Make the dimension available in function templates.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Make the space dimension available in function templates.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* The default index of the finite element to be used on a given cell.
/**
* The dimension of the image space, corresponding to Triangulation.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* A base class for internal data that derived finite element classes may
* The dimension of the finite element, which is the template parameter
* <tt>dim</tt>
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
private:
/**
* functions can be used as template parameter @p PolynomialType.
*
* @code
- * static const unsigned int dimension;
+ * static constexpr unsigned int dimension;
*
* void evaluate (const Point<dim> &unit_point,
* std::vector<double> &values,
/**
* Dimension in which this object operates.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Dimension of the space in which this object operates.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Number of quadrature points of the current object. Its value is
* Dimension of the object over which we integrate. For the present class,
* this is equal to <code>dim</code>.
*/
- static const unsigned int integral_dimension = dim;
+ static constexpr unsigned int integral_dimension = dim;
/**
* Constructor. Gets cell independent data from mapping and finite element
* Dimension of the object over which we integrate. For the present class,
* this is equal to <code>dim-1</code>.
*/
- static const unsigned int integral_dimension = dim - 1;
+ static constexpr unsigned int integral_dimension = dim - 1;
/**
* Constructor. Call the constructor of the base class and set up the arrays
* Dimension in which this object operates.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Dimension of the object over which we integrate. For the present class,
* this is equal to <code>dim-1</code>.
*/
- static const unsigned int integral_dimension = dim - 1;
+ static constexpr unsigned int integral_dimension = dim - 1;
/**
* Constructor. Gets cell independent data from mapping and finite element
/**
* Dimension in which this object operates.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Dimension of the space in which this object operates.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Dimension of the object over which we integrate. For the present class,
* this is equal to <code>dim-1</code>.
*/
- static const unsigned int integral_dimension = dim - 1;
+ static constexpr unsigned int integral_dimension = dim - 1;
/**
* Constructor. Gets cell independent data from mapping and finite element
/**
* Make the dimension available in function templates.
*/
- static const unsigned int dimension = dim;
- static const unsigned int spacedimension = spacedim;
+ static constexpr unsigned int dimension = dim;
+ static const unsigned int spacedimension = spacedim;
/**
* Build up the triangulation from the coarse grid in future. Copy smoothing
/**
* Make the dimension available in function templates.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Make the space-dimension available in function templates.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Create an empty triangulation. Do not create any cells.
* For example, if this accessor represents a quad that is part of a two-
* dimensional surface in four-dimensional space, then this value is four.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Dimensionality of the object that the thing represented by this accessor
* is part of. For example, if this accessor represents a line that is part
* of a hexahedron, then this value will be three.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Dimensionality of the current object represented by this accessor. For
* For example, if this accessor represents a quad that is part of a two-
* dimensional surface in four-dimensional space, then this value is four.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Dimensionality of the object that the thing represented by this accessor
* is part of. For example, if this accessor represents a line that is part
* of a hexahedron, then this value will be three.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Dimensionality of the current object represented by this accessor. For
* For example, if this accessor represents a quad that is part of a two-
* dimensional surface in four-dimensional space, then this value is four.
*/
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Dimensionality of the object that the thing represented by this accessor
* is part of. For example, if this accessor represents a line that is part
* of a hexahedron, then this value will be three.
*/
- static const unsigned int dimension = 1;
+ static constexpr unsigned int dimension = 1;
/**
* Dimensionality of the current object represented by this accessor. For
: public hp::FEValuesBase<dim, dim, dealii::FEValues<dim, spacedim>>
{
public:
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Constructor. Initialize this object with the given parameters.
/**
* The dimension set by the template argument `dim`.
*/
- static const unsigned int dimension = dim;
+ static constexpr unsigned int dimension = dim;
/**
* Collects the options for initialization of the MatrixFree class. The
std::vector<std::shared_ptr<FEValuesBase<dim, spacedim>>> fevalv;
public:
- static const unsigned int dimension = dim;
- static const unsigned int space_dimension = spacedim;
+ static constexpr unsigned int dimension = dim;
+ static constexpr unsigned int space_dimension = spacedim;
/**
* Constructor.