Reference documentation for deal.II version 9.2.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
quadrature_selector.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2003 - 2019 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #ifndef dealii_quadrature_selector_h
18 #define dealii_quadrature_selector_h
19 
20 
21 #include <deal.II/base/config.h>
22 
25 
26 #include <string>
27 
29 
41 template <int dim>
42 class QuadratureSelector : public Quadrature<dim>
43 {
44 public:
50  QuadratureSelector(const std::string &s, const unsigned int order = 0);
51 
57  static std::string
59 
70  int,
71  << "You tried to generate a QGauss object with an invalid "
72  << "number " << arg1
73  << " of quadrature points in each coordinate "
74  << "direction. This number must be greater than or equal "
75  << "to 1.");
80  std::string,
81  unsigned int,
82  << "You tried to generate a " << arg1
83  << " object; no order is needed for objects of this kind, but "
84  << arg2 << " was given as argument.");
89  std::string,
90  << arg1 << " is not a valid name for a quadrature rule.");
92 private:
98  static Quadrature<dim>
99  create_quadrature(const std::string &s, const unsigned int order);
100 };
102 
103 #endif
QuadratureSelector::ExcInvalidQGaussOrder
static ::ExceptionBase & ExcInvalidQGaussOrder(int arg1)
QuadratureSelector::create_quadrature
static Quadrature< dim > create_quadrature(const std::string &s, const unsigned int order)
Definition: quadrature_selector.cc:24
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
DeclException1
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:518
exceptions.h
QuadratureSelector
Definition: quadrature_selector.h:42
QuadratureSelector::ExcInvalidOrder
static ::ExceptionBase & ExcInvalidOrder(std::string arg1, unsigned int arg2)
QuadratureSelector::get_quadrature_names
static std::string get_quadrature_names()
Definition: quadrature_selector.cc:74
quadrature.h
config.h
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
QuadratureSelector::QuadratureSelector
QuadratureSelector(const std::string &s, const unsigned int order=0)
Definition: quadrature_selector.cc:64
Quadrature
Definition: quadrature.h:85
QuadratureSelector::ExcInvalidQuadrature
static ::ExceptionBase & ExcInvalidQuadrature(std::string arg1)
DeclException2
#define DeclException2(Exception2, type1, type2, outsequence)
Definition: exceptions.h:541