ug4
gauss_quad_triangle.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011: G-CSC, Goethe University Frankfurt
3  *
4  * This file is part of UG4.
5  *
6  * UG4 is free software: you can redistribute it and/or modify it under the
7  * terms of the GNU Lesser General Public License version 3 (as published by the
8  * Free Software Foundation) with the following additional attribution
9  * requirements (according to LGPL/GPL v3 §7):
10  *
11  * (1) The following notice must be displayed in the Appropriate Legal Notices
12  * of covered and combined works: "Based on UG4 (www.ug4.org/license)".
13  *
14  * (2) The following notice must be displayed at a prominent place in the
15  * terminal output of covered works: "Based on UG4 (www.ug4.org/license)".
16  *
17  * (3) The following bibliography is recommended for citation and must be
18  * preserved in all covered files:
19  * "Reiter, S., Vogel, A., Heppner, I., Rupp, M., and Wittum, G. A massively
20  * parallel geometric multigrid solver on hierarchically distributed grids.
21  * Computing and visualization in science 16, 4 (2013), 151-164"
22  * "Vogel, A., Reiter, S., Rupp, M., Nägel, A., and Wittum, G. UG4 -- a novel
23  * flexible software system for simulating pde based models on high performance
24  * computers. Computing and visualization in science 16, 4 (2013), 165-179"
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29  * GNU Lesser General Public License for more details.
30  */
31 
32 // This file is parsed from UG 3.9.
33 // It provides the Gauss Quadratures for a reference triangle.
34 
35 
36 #ifndef __H__UG__LIB_DISCRETIZATION__QUADRATURE__GAUSS_QUADRATURE__TRIANGLE__
37 #define __H__UG__LIB_DISCRETIZATION__QUADRATURE__GAUSS_QUADRATURE__TRIANGLE__
38 
39 #include "gauss_quad.h"
40 
41 namespace ug{
42 
44 // Implemented GaussQuadrature for ReferenceTriangle
46 template <>
48 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 1>, 2, 1, 1>{};
49 
50 template <>
52 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 2>, 2, 2, 3>{};
53 
54 template <>
56 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 3>, 2, 3, 4>{};
57 
58 template <>
60 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 4>, 2, 4, 6>{};
61 
62 template <>
64 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 5>, 2, 5, 7>{};
65 
66 template <>
68 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 6>, 2, 6, 12>{};
69 
70 template <>
72 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 7>, 2, 7, 12>{};
73 
74 template <>
76 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 8>, 2, 8, 16>{};
77 
78 template <>
80 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 9>, 2, 9, 19>{};
81 
82 template <>
84 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 10>, 2, 10, 25>{};
85 
86 template <>
88 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 11>, 2, 11, 28>{};
89 
90 template <>
92 : public GaussQuadBase<GaussQuadrature<ReferenceTriangle, 12>, 2, 12, 33>{};
93 
95 // template wrapper for orders implemented by higher order
97 template <>
99 : public GaussQuadrature<ReferenceTriangle, 1>{};
100 
101 }; // namespace ug
102 
103 #endif /* __H__UG__LIB_DISCRETIZATION__QUADRATURE__GAUSS_QUADRATURE__TRIANGLE__ */
104 
wrapper to ease implementation
Definition: gauss_quad.h:49
fixed order gauss quadrature
Definition: gauss_quad.h:44
Definition: reference_element.h:394
the ug namespace