Reference documentation for deal.II version GIT ca9e7e8105 2023-03-24 14:15:03+00:00
\(\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 - 2020 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 
40 template <int dim>
41 class QuadratureSelector : public Quadrature<dim>
42 {
43 public:
49  QuadratureSelector(const std::string &s, const unsigned int order = 0);
50 
56  static std::string
58 
69  int,
70  << "You tried to generate a QGauss object with an invalid "
71  << "number " << arg1
72  << " of quadrature points in each coordinate "
73  << "direction. This number must be greater than or equal "
74  << "to 1.");
79  std::string,
80  unsigned int,
81  << "You tried to generate a " << arg1
82  << " object; no order is needed for objects of this kind, but "
83  << arg2 << " was given as argument.");
88  std::string,
89  << arg1 << " is not a valid name for a quadrature rule.");
91 private:
97  static Quadrature<dim>
98  create_quadrature(const std::string &s, const unsigned int order);
99 };
101 
102 #endif
static std::string get_quadrature_names()
QuadratureSelector(const std::string &s, const unsigned int order=0)
static Quadrature< dim > create_quadrature(const std::string &s, const unsigned int order)
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475
static ::ExceptionBase & ExcInvalidQuadrature(std::string arg1)
static ::ExceptionBase & ExcInvalidQGaussOrder(int arg1)
#define DeclException2(Exception2, type1, type2, outsequence)
Definition: exceptions.h:533
static ::ExceptionBase & ExcInvalidOrder(std::string arg1, unsigned int arg2)
#define DeclException1(Exception1, type1, outsequence)
Definition: exceptions.h:510