Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/basix/v0.8.0/cpp/quadrature_8h_source.html

Basix 0.7.0

Home     Installation     Demos     C++ docs     Python docs

quadrature.h
1 // Copyright (c) 2020 Chris Richardson
2 // FEniCS Project
3 // SPDX-License-Identifier: MIT
4 
5 #pragma once
6 
7 #include "cell.h"
8 #include "polyset.h"
9 #include <array>
10 #include <concepts>
11 #include <vector>
12 
15 {
16 
18 enum class type
19 {
20  Default = 0,
21  gauss_jacobi = 1,
22  gll = 2,
23  xiao_gimbutas = 3,
24  zienkiewicz_taylor = 20,
25  keast = 21,
26  strang_fix = 22,
27 };
28 
37 template <std::floating_point T>
38 std::array<std::vector<T>, 2> make_quadrature(const quadrature::type rule,
39  cell::type celltype,
40  polyset::type polytype, int m);
41 
48 
52 template <std::floating_point T>
53 std::vector<T> get_gll_points(int m);
54 
58 template <std::floating_point T>
59 std::vector<T> get_gl_points(int m);
60 
61 } // namespace basix::quadrature
type
Cell type.
Definition: cell.h:21
type
Cell type.
Definition: polyset.h:136
Quadrature rules.
Definition: quadrature.h:15
type
Quadrature type.
Definition: quadrature.h:19
std::vector< T > get_gll_points(int m)
Definition: quadrature.cpp:4967
quadrature::type get_default_rule(cell::type celltype, int m)
Definition: quadrature.cpp:4894
std::array< std::vector< T >, 2 > make_quadrature(const quadrature::type rule, cell::type celltype, polyset::type polytype, int m)
Definition: quadrature.cpp:4924
std::vector< T > get_gl_points(int m)
Definition: quadrature.cpp:4958