13#ifndef dealii_fe_collection_h
14#define dealii_fe_collection_h
33 template <
int dim,
int spacedim>
34 class MappingCollection;
59 template <
int dim,
int spacedim = dim>
82 const unsigned int fe_index)
84 return ((fe_index + 1) < fe_collection.
size()) ? fe_index + 1 :
97 const unsigned int fe_index)
100 return (fe_index > 0) ? fe_index - 1 : fe_index;
125 template <
class... FETypes>
152 std::is_nothrow_move_constructible_v<
154 &&
std::is_nothrow_move_constructible_v<
std::function<
156 const
unsigned int)>>) = default;
342 std::vector<
std::map<
unsigned int,
unsigned int>>
349 std::vector<
std::map<
unsigned int,
unsigned int>>
360 std::vector<
std::map<
unsigned int,
unsigned int>>
362 &fes_and_faces) const;
387 const
unsigned int codim = 0) const;
412 const
unsigned int codim = 0) const;
448 const
unsigned int codim = 0) const;
484 const
unsigned int codim = 0) const;
511 const
unsigned int codim = 0) const;
537 const
unsigned int codim = 0) const;
566 const
unsigned int)> &next,
567 const
std::function<
unsigned int(
569 const
unsigned int)> &
prev);
600 std::vector<
unsigned int>
881 template <
int dim,
int spacedim>
882 template <class... FETypes>
887 "Not all of the input arguments of this function "
888 "are derived from FiniteElement<dim, spacedim>!");
893 const auto fe_pointers = {
895 for (
const auto p : fe_pointers)
901 template <
int dim,
int spacedim>
920 template <
int dim,
int spacedim>
925 const unsigned int n_elements = this->
size();
926 if (n_elements != fe_collection.
size())
929 for (
unsigned int i = 0; i < n_elements; ++i)
930 if (!(this->
operator[](i) == fe_collection[i]))
938 template <
int dim,
int spacedim>
943 return !(*
this == fe_collection);
948 template <
int dim,
int spacedim>
954 unsigned int max = 0;
955 for (
unsigned int i = 0; i < this->
size(); ++i)
956 max =
std::max(max, this->
operator[](i).degree);
963 template <
int dim,
int spacedim>
969 unsigned int max = 0;
970 for (
unsigned int i = 0; i < this->
size(); ++i)
971 max =
std::max(max, this->
operator[](i).n_dofs_per_vertex());
978 template <
int dim,
int spacedim>
984 unsigned int max = 0;
985 for (
unsigned int i = 0; i < this->
size(); ++i)
986 max =
std::max(max, this->
operator[](i).n_dofs_per_line());
993 template <
int dim,
int spacedim>
999 unsigned int max = 0;
1000 for (
unsigned int i = 0; i < this->
size(); ++i)
1001 max =
std::max(max, this->
operator[](i).max_dofs_per_quad());
1008 template <
int dim,
int spacedim>
1014 unsigned int max = 0;
1015 for (
unsigned int i = 0; i < this->
size(); ++i)
1016 max =
std::max(max, this->
operator[](i).n_dofs_per_hex());
1023 template <
int dim,
int spacedim>
1029 unsigned int max = 0;
1030 for (
unsigned int i = 0; i < this->
size(); ++i)
1031 max =
std::max(max, this->
operator[](i).max_dofs_per_face());
1038 template <
int dim,
int spacedim>
1044 unsigned int max = 0;
1045 for (
unsigned int i = 0; i < this->
size(); ++i)
1046 max =
std::max(max, this->
operator[](i).n_dofs_per_cell());
1052 template <
int dim,
int spacedim>
1058 for (
unsigned int i = 0; i < this->
size(); ++i)
1059 if (this->
operator[](i).hp_constraints_are_implemented() ==
false)
* x_component_mask set(0, true)
unsigned int size() const
const T & operator[](const unsigned int index) const
std::vector< std::map< unsigned int, unsigned int > > hp_vertex_dof_identities(const std::set< unsigned int > &fes) const
unsigned int previous_in_hierarchy(const unsigned int fe_index) const
unsigned int max_dofs_per_line() const
unsigned int max_dofs_per_hex() const
std::vector< unsigned int > get_hierarchy_sequence(const unsigned int fe_index=0) const
unsigned int max_dofs_per_vertex() const
unsigned int find_dominating_fe_extended(const std::set< unsigned int > &fes, const unsigned int codim=0) const
std::vector< std::map< unsigned int, unsigned int > > hp_quad_dof_identities(const std::set< std::pair< unsigned int, unsigned int > > &fes_and_faces) const
bool hp_constraints_are_implemented() const
bool operator==(const FECollection< dim, spacedim > &fe_collection) const
std::function< unsigned int(const typename hp::FECollection< dim, spacedim > &, const unsigned int)> hierarchy_next
const MappingCollection< dim, spacedim > & get_reference_cell_default_linear_mapping() const
std::set< unsigned int > find_common_fes(const std::set< unsigned int > &fes, const unsigned int codim=0) const
FECollection(const FETypes &...fes)
void push_back(const FiniteElement< dim, spacedim > &new_fe)
unsigned int next_in_hierarchy(const unsigned int fe_index) const
void set_default_hierarchy()
std::shared_ptr< MappingCollection< dim, spacedim > > reference_cell_default_linear_mapping
unsigned int max_degree() const
unsigned int find_dominating_fe(const std::set< unsigned int > &fes, const unsigned int codim=0) const
std::set< unsigned int > find_enclosing_fes(const std::set< unsigned int > &fes, const unsigned int codim=0) const
unsigned int find_dominated_fe(const std::set< unsigned int > &fes, const unsigned int codim=0) const
unsigned int max_dofs_per_face() const
FECollection(FECollection< dim, spacedim > &&) noexcept(std::is_nothrow_move_constructible_v< std::vector< std::shared_ptr< const FiniteElement< dim, spacedim > > > > &&std::is_nothrow_move_constructible_v< std::function< unsigned int(const typename hp::FECollection< dim, spacedim > &, const unsigned int)> >)=default
ComponentMask component_mask(const FEValuesExtractors::Scalar &scalar) const
bool operator!=(const FECollection< dim, spacedim > &fe_collection) const
std::vector< std::map< unsigned int, unsigned int > > hp_line_dof_identities(const std::set< unsigned int > &fes) const
void set_hierarchy(const std::function< unsigned int(const typename hp::FECollection< dim, spacedim > &, const unsigned int)> &next, const std::function< unsigned int(const typename hp::FECollection< dim, spacedim > &, const unsigned int)> &prev)
unsigned int max_dofs_per_quad() const
unsigned int find_dominated_fe_extended(const std::set< unsigned int > &fes, const unsigned int codim=0) const
std::function< unsigned int(const typename hp::FECollection< dim, spacedim > &, const unsigned int)> hierarchy_prev
unsigned int n_blocks() const
FECollection(const FECollection< dim, spacedim > &)=default
unsigned int n_components() const
unsigned int max_dofs_per_cell() const
BlockMask block_mask(const FEValuesExtractors::Scalar &scalar) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define DeclException0(Exception0)
#define Assert(cond, exc)
static ::ExceptionBase & ExcNoFiniteElements()
::VectorizedArray< Number, width > max(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
static unsigned int next_index(const typename hp::FECollection< dim, spacedim > &fe_collection, const unsigned int fe_index)
static unsigned int previous_index(const typename hp::FECollection< dim, spacedim > &fe_collection, const unsigned int fe_index)
void prev(std::tuple< I1, I2 > &t)