15#ifndef dealii_fe_collection_h
16#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<
154 &&
std::is_nothrow_move_constructible<
std::function<
156 const
unsigned int)>>::value) = default;
342 std::vector<
std::map<
unsigned int,
unsigned int>>
349 std::vector<
std::map<
unsigned int,
unsigned int>>
356 std::vector<
std::map<
unsigned int,
unsigned int>>
358 const
unsigned int face_no = 0) const;
382 std::set<
unsigned int>
384 const
unsigned int codim = 0) const;
407 std::set<
unsigned int>
409 const
unsigned int codim = 0) const;
445 const
unsigned int codim = 0) const;
481 const
unsigned int codim = 0) const;
508 const
unsigned int codim = 0) const;
534 const
unsigned int codim = 0) const;
563 const
unsigned int)> &next,
564 const
std::function<
unsigned int(
566 const
unsigned int)> &prev);
597 std::vector<
unsigned int>
878 template <
int dim,
int spacedim>
879 template <class... FETypes>
884 "Not all of the input arguments of this function "
885 "are derived from FiniteElement<dim, spacedim>!");
890 const auto fe_pointers = {
892 for (
const auto p : fe_pointers)
898 template <
int dim,
int spacedim>
917 template <
int dim,
int spacedim>
922 const unsigned int n_elements = this->
size();
923 if (n_elements != fe_collection.
size())
926 for (
unsigned int i = 0; i < n_elements; ++i)
927 if (!(this->
operator[](i) == fe_collection[i]))
935 template <
int dim,
int spacedim>
940 return !(*
this == fe_collection);
945 template <
int dim,
int spacedim>
951 unsigned int max = 0;
952 for (
unsigned int i = 0; i < this->
size(); ++i)
953 max =
std::max(max, this->
operator[](i).degree);
960 template <
int dim,
int spacedim>
966 unsigned int max = 0;
967 for (
unsigned int i = 0; i < this->
size(); ++i)
968 max =
std::max(max, this->
operator[](i).n_dofs_per_vertex());
975 template <
int dim,
int spacedim>
981 unsigned int max = 0;
982 for (
unsigned int i = 0; i < this->
size(); ++i)
983 max =
std::max(max, this->
operator[](i).n_dofs_per_line());
990 template <
int dim,
int spacedim>
996 unsigned int max = 0;
997 for (
unsigned int i = 0; i < this->
size(); ++i)
998 max =
std::max(max, this->
operator[](i).max_dofs_per_quad());
1005 template <
int dim,
int spacedim>
1011 unsigned int max = 0;
1012 for (
unsigned int i = 0; i < this->
size(); ++i)
1013 max =
std::max(max, this->
operator[](i).n_dofs_per_hex());
1020 template <
int dim,
int spacedim>
1026 unsigned int max = 0;
1027 for (
unsigned int i = 0; i < this->
size(); ++i)
1028 max =
std::max(max, this->
operator[](i).max_dofs_per_face());
1035 template <
int dim,
int spacedim>
1041 unsigned int max = 0;
1042 for (
unsigned int i = 0; i < this->
size(); ++i)
1043 max =
std::max(max, this->
operator[](i).n_dofs_per_cell());
1049 template <
int dim,
int spacedim>
1055 for (
unsigned int i = 0; i < this->
size(); ++i)
1056 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)