OGS
GaussLegendreTri.cpp
Go to the documentation of this file.
1
14#include "GaussLegendreTri.h"
15
16namespace MathLib
17{
18template <>
19const std::array<std::array<double, 2>, GaussLegendreTri<1>::NPoints>
20 GaussLegendreTri<1>::X = {{{{1. / 3., 1. / 3.}}}};
21template <>
22double const GaussLegendreTri<1>::W[1] = {1.0};
23
24const std::array<std::array<double, 2>, GaussLegendreTri<2>::NPoints>
26 {{{1. / 6., 1. / 6.}}, {{2. / 3., 1. / 6.}}, {{1. / 6., 2. / 3.}}}};
27double const GaussLegendreTri<2>::W[3] = {1. / 3., 1. / 3., 1. / 3.};
28
29const std::array<std::array<double, 2>, GaussLegendreTri<3>::NPoints>
30 GaussLegendreTri<3>::X = {{{{1. / 3., 1. / 3.}},
31 {{1. / 5., 3. / 5.}},
32 {{1. / 5., 1. / 5.}},
33 {{3. / 5., 1. / 5.}}}};
34double const GaussLegendreTri<3>::W[4] = {-27. / 48., 25. / 48., 25. / 48.,
35 25. / 48.};
36
37const std::array<std::array<double, 2>, GaussLegendreTri<4>::NPoints>
38 GaussLegendreTri<4>::X = {{{{1. / 3., 1. / 3.}},
39 {{0.059715871789770, 0.470142064105115}},
40 {{0.470142064105115, 0.059715871789770}},
41 {{0.470142064105115, 0.470142064105115}},
42 {{0.797426985353087, 0.101286507323456}},
43 {{0.101286507323456, 0.797426985353087}},
44 {{0.101286507323456, 0.101286507323456}}}};
45double const GaussLegendreTri<4>::W[7] = {0.225,
46 0.132394152788506,
47 0.132394152788506,
48 0.132394152788506,
49 0.125939180544827,
50 0.125939180544827,
51 0.125939180544827};
52
53} // namespace MathLib
static MATHLIB_EXPORT const double W[NPoints]
static MATHLIB_EXPORT const double W[NPoints]
static MATHLIB_EXPORT const std::array< std::array< double, 2 >, NPoints > X
static MATHLIB_EXPORT const unsigned NPoints
static MATHLIB_EXPORT const double W[NPoints]
static MATHLIB_EXPORT const std::array< std::array< double, 2 >, NPoints > X
static MATHLIB_EXPORT const unsigned NPoints
static MATHLIB_EXPORT const unsigned NPoints