deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+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\}}\)
Loading...
Searching...
No Matches
quadrature_selector.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2003 - 2022 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#ifndef dealii_quadrature_selector_h
15#define dealii_quadrature_selector_h
16
17
18#include <deal.II/base/config.h>
19
22
23#include <string>
24
26
37template <int dim>
38class QuadratureSelector : public Quadrature<dim>
39{
40public:
46 QuadratureSelector(const std::string &s, const unsigned int order = 0);
47
53 static std::string
55
66 int,
67 << "You tried to generate a QGauss object with an invalid "
68 << "number " << arg1
69 << " of quadrature points in each coordinate "
70 << "direction. This number must be greater than or equal "
71 << "to 1.");
76 std::string,
77 unsigned int,
78 << "You tried to generate a " << arg1
79 << " object; no order is needed for objects of this kind, but "
80 << arg2 << " was given as argument.");
85 std::string,
86 << arg1 << " is not a valid name for a quadrature rule.");
88private:
94 static Quadrature<dim>
95 create_quadrature(const std::string &s, const unsigned int order);
96};
98
99#endif
static std::string get_quadrature_names()
static Quadrature< dim > create_quadrature(const std::string &s, const unsigned int order)
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
static ::ExceptionBase & ExcInvalidOrder(std::string arg1, unsigned int arg2)
static ::ExceptionBase & ExcInvalidQGaussOrder(int arg1)
static ::ExceptionBase & ExcInvalidQuadrature(std::string arg1)
#define DeclException2(Exception2, type1, type2, outsequence)
#define DeclException1(Exception1, type1, outsequence)