16#ifndef dealii_fe_collection_h
17#define dealii_fe_collection_h
34 template <
int dim,
int spacedim>
35 class MappingCollection;
60 template <
int dim,
int spacedim = dim>
83 const unsigned int fe_index)
85 return ((fe_index + 1) < fe_collection.
size()) ? fe_index + 1 :
98 const unsigned int fe_index)
101 return (fe_index > 0) ? fe_index - 1 : fe_index;
126 template <
class... FETypes>
153 std::is_nothrow_move_constructible<
155 &&
std::is_nothrow_move_constructible<
std::function<
157 const
unsigned int)>>::value) = default;
343 std::vector<
std::map<
unsigned int,
unsigned int>>
350 std::vector<
std::map<
unsigned int,
unsigned int>>
357 std::vector<
std::map<
unsigned int,
unsigned int>>
359 const
unsigned int face_no = 0) const;
383 std::set<
unsigned int>
385 const
unsigned int codim = 0) const;
408 std::set<
unsigned int>
410 const
unsigned int codim = 0) const;
446 const
unsigned int codim = 0) const;
482 const
unsigned int codim = 0) const;
509 const
unsigned int codim = 0) const;
535 const
unsigned int codim = 0) const;
564 const
unsigned int)> &next,
565 const
std::function<
unsigned int(
567 const
unsigned int)> &prev);
598 std::vector<
unsigned int>
879 template <
int dim,
int spacedim>
880 template <class... FETypes>
885 "Not all of the input arguments of this function "
886 "are derived from FiniteElement<dim, spacedim>!");
891 const auto fe_pointers = {
893 for (
const auto p : fe_pointers)
899 template <
int dim,
int spacedim>
918 template <
int dim,
int spacedim>
923 const unsigned int n_elements = this->
size();
924 if (n_elements != fe_collection.
size())
927 for (
unsigned int i = 0; i < n_elements; ++i)
928 if (!(this->
operator[](i) == fe_collection[i]))
936 template <
int dim,
int spacedim>
941 return !(*
this == fe_collection);
946 template <
int dim,
int spacedim>
952 unsigned int max = 0;
953 for (
unsigned int i = 0; i < this->
size(); ++i)
954 max =
std::max(max, this->
operator[](i).degree);
961 template <
int dim,
int spacedim>
967 unsigned int max = 0;
968 for (
unsigned int i = 0; i < this->
size(); ++i)
969 max =
std::max(max, this->
operator[](i).n_dofs_per_vertex());
976 template <
int dim,
int spacedim>
982 unsigned int max = 0;
983 for (
unsigned int i = 0; i < this->
size(); ++i)
984 max =
std::max(max, this->
operator[](i).n_dofs_per_line());
991 template <
int dim,
int spacedim>
997 unsigned int max = 0;
998 for (
unsigned int i = 0; i < this->
size(); ++i)
999 max =
std::max(max, this->
operator[](i).max_dofs_per_quad());
1006 template <
int dim,
int spacedim>
1012 unsigned int max = 0;
1013 for (
unsigned int i = 0; i < this->
size(); ++i)
1014 max =
std::max(max, this->
operator[](i).n_dofs_per_hex());
1021 template <
int dim,
int spacedim>
1027 unsigned int max = 0;
1028 for (
unsigned int i = 0; i < this->
size(); ++i)
1029 max =
std::max(max, this->
operator[](i).max_dofs_per_face());
1036 template <
int dim,
int spacedim>
1042 unsigned int max = 0;
1043 for (
unsigned int i = 0; i < this->
size(); ++i)
1044 max =
std::max(max, this->
operator[](i).n_dofs_per_cell());
1050 template <
int dim,
int spacedim>
1056 for (
unsigned int i = 0; i < this->
size(); ++i)
1057 if (this->
operator[](i).hp_constraints_are_implemented() ==
false)
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
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
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)
FECollection(FECollection< dim, spacedim > &&) noexcept(std::is_nothrow_move_constructible< std::vector< std::shared_ptr< const FiniteElement< dim, spacedim > > > >::value &&std::is_nothrow_move_constructible< std::function< unsigned int(const typename hp::FECollection< dim, spacedim > &, const unsigned int)> >::value)=default
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
std::vector< std::map< unsigned int, unsigned int > > hp_quad_dof_identities(const std::set< unsigned int > &fes, const unsigned int face_no=0) 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)