Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
fe_q_dg0.h
1 // ---------------------------------------------------------------------
2 // @f$Id: fe_q_dg0.h 31527 2013-11-03 09:58:45Z maier @f$
3 //
4 // Copyright (C) 2012 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 
18 #ifndef __deal2__fe_q_dg0_h
19 #define __deal2__fe_q_dg0_h
20 
21 #include <deal.II/base/config.h>
22 #include <deal.II/base/tensor_product_polynomials_const.h>
23 #include <deal.II/fe/fe_q_base.h>
24 
26 
27 
30 
237 template <int dim, int spacedim=dim>
238 class FE_Q_DG0 : public FE_Q_Base<TensorProductPolynomialsConst<dim>,dim,spacedim>
239 {
240 public:
245  FE_Q_DG0 (const unsigned int p);
246 
253  FE_Q_DG0 (const Quadrature<1> &points);
254 
260  virtual std::string get_name () const;
261 
266  virtual void interpolate(std::vector<double> &local_dofs,
267  const std::vector<double> &values) const;
268 
278  virtual void interpolate(std::vector<double> &local_dofs,
279  const std::vector<Vector<double> > &values,
280  unsigned int offset = 0) const;
281 
286  virtual void interpolate(
287  std::vector<double> &local_dofs,
288  const VectorSlice<const std::vector<std::vector<double> > > &values) const;
289 
299  virtual void
301  FullMatrix<double> &matrix) const;
302 
303 
312  virtual bool has_support_on_face (const unsigned int shape_index,
313  const unsigned int face_index) const;
314 
315 protected:
321  virtual FiniteElement<dim,spacedim> *clone() const;
322 
323 private:
324 
329  static std::vector<bool> get_riaf_vector(const unsigned int degree);
330 
337  static std::vector<unsigned int> get_dpo_vector(const unsigned int degree);
338 };
339 
340 
341 
345 DEAL_II_NAMESPACE_CLOSE
346 
347 #endif
static std::vector< bool > get_riaf_vector(const unsigned int degree)
virtual void get_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
const unsigned int degree
Definition: fe_base.h:287
virtual FiniteElement< dim, spacedim > * clone() const
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const
FE_Q_DG0(const unsigned int p)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::string get_name() const