* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- static const unsigned int invalid_unsigned_int =
- static_cast<unsigned int>(-1);
+ constexpr unsigned int invalid_unsigned_int = static_cast<unsigned int>(-1);
/**
* Representation of the largest number that can be put into a size_type.
* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- const types::global_dof_index invalid_size_type =
+ constexpr types::global_dof_index invalid_size_type =
static_cast<types::global_dof_index>(-1);
/**
* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- const types::fe_index invalid_fe_index = static_cast<types::fe_index>(-1);
+ constexpr types::fe_index invalid_fe_index = static_cast<types::fe_index>(-1);
/**
* An invalid value for indices of degrees of freedom.
* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- const types::global_dof_index invalid_dof_index =
+ constexpr types::global_dof_index invalid_dof_index =
static_cast<types::global_dof_index>(-1);
/**
* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- const types::coarse_cell_id invalid_coarse_cell_id =
+ constexpr types::coarse_cell_id invalid_coarse_cell_id =
static_cast<types::coarse_cell_id>(-1);
/**
* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- const types::material_id invalid_material_id =
+ constexpr types::material_id invalid_material_id =
static_cast<types::material_id>(-1);
/**
* @see
* @ref GlossBoundaryIndicator "Glossary entry on boundary indicators"
*/
- const types::boundary_id invalid_boundary_id =
+ constexpr types::boundary_id invalid_boundary_id =
static_cast<types::boundary_id>(-1);
/**
* @see
* @ref GlossBoundaryIndicator "Glossary entry on boundary indicators"
*/
- const types::boundary_id internal_face_boundary_id =
+ constexpr types::boundary_id internal_face_boundary_id =
static_cast<types::boundary_id>(-1);
/**
* @see
* @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
*/
- const types::manifold_id flat_manifold_id =
+ constexpr types::manifold_id flat_manifold_id =
static_cast<types::manifold_id>(-1);
/**
* @ref GlossFaceOrientation "glossary"
* for more information.
*/
- const types::geometric_orientation default_geometric_orientation =
+ constexpr types::geometric_orientation default_geometric_orientation =
static_cast<types::geometric_orientation>(0b001);
/**
* @ref GlossFaceOrientation "glossary"
* for more information.
*/
- const types::geometric_orientation reverse_line_orientation =
+ constexpr types::geometric_orientation reverse_line_orientation =
static_cast<types::geometric_orientation>(0b000);
/**
* @ref GlossSubdomainId "glossary"
* for more information.
*/
- const types::subdomain_id invalid_subdomain_id =
+ constexpr types::subdomain_id invalid_subdomain_id =
static_cast<types::subdomain_id>(-1);
/**
* @ref GlossInvalidValue "invalid value".
* See there for more information.
*/
- const types::subdomain_id artificial_subdomain_id =
+ constexpr types::subdomain_id artificial_subdomain_id =
static_cast<types::subdomain_id>(-2);
} // namespace numbers