17 #include <deal.II/base/quadrature_lib.h> 18 #include <deal.II/base/std_cxx14/memory.h> 20 #include <deal.II/fe/fe_dgq.h> 21 #include <deal.II/fe/fe_nothing.h> 22 #include <deal.II/fe/fe_q_iso_q1.h> 24 #include <deal.II/lac/vector.h> 29 DEAL_II_NAMESPACE_OPEN
33 template <
int dim,
int spacedim>
40 Polynomials::generate_complete_Lagrange_basis_on_subdivisions(
47 std::vector<bool>(1, false))
50 ExcMessage(
"This element can only be used with a positive number of " 61 template <
int dim,
int spacedim>
69 std::ostringstream namebuf;
71 << this->degree <<
")";
77 template <
int dim,
int spacedim>
82 std::vector<double> & nodal_values)
const 85 this->get_unit_support_points().size());
89 for (
unsigned int i = 0; i < this->dofs_per_cell; ++i)
93 nodal_values[i] = support_point_values[i](0);
99 template <
int dim,
int spacedim>
100 std::unique_ptr<FiniteElement<dim, spacedim>>
103 return std_cxx14::make_unique<FE_Q_iso_Q1<dim, spacedim>>(*this);
108 template <
int dim,
int spacedim>
112 const unsigned int codim)
const 135 if (this->degree < fe_q_iso_q1_other->degree &&
136 fe_q_iso_q1_other->degree % this->degree == 0)
138 else if (this->degree == fe_q_iso_q1_other->degree)
140 else if (this->degree > fe_q_iso_q1_other->degree &&
141 this->degree % fe_q_iso_q1_other->degree == 0)
149 if (fe_nothing->is_dominating())
164 #include "fe_q_iso_q1.inst" 166 DEAL_II_NAMESPACE_CLOSE
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double >> &support_point_values, std::vector< double > &nodal_values) const override
#define AssertDimension(dim1, dim2)
const std::vector< Point< dim > > & get_points() const
virtual std::string get_name() const override
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define Assert(cond, exc)
std::string dim_string(const int dim, const int spacedim)
void initialize(const std::vector< Point< 1 >> &support_points_1d)
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
FE_Q_iso_Q1(const unsigned int n_subdivisions)
static ::ExceptionBase & ExcNotImplemented()
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final