Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
GaussLegendre_2_4.h
Go to the documentation of this file.
1/* This file is part of MoDELib, the Mechanics Of Defects Evolution Library.
2 *
3 *
4 * MoDELib is distributed without any warranty under the
5 * GNU General Public License (GPL) v2 <http://www.gnu.org/licenses/>.
6 */
7
8#ifndef model_GAUSSLEGENDRE_2_4_H_
9#define model_GAUSSLEGENDRE_2_4_H_
10
11namespace model
12{
13 /**************************************************************************/
14 template <>
15 struct GaussLegendre<2,4>
16 {
17 static Eigen::Matrix<double,3,4> abcsissasAndWeights()
18 {
19 Eigen::Matrix<double,4,3> aw;
20 aw<< 3.333333333333333e-01, 3.333333333333333e-01, -2.812500000000000e-01, // yes, negative sign in weight
21 /**/ 2.000000000000000e-01, 2.000000000000000e-01, 2.604166666666667e-01,
22 /**/ 6.000000000000000e-01, 2.000000000000000e-01, 2.604166666666667e-01,
23 /**/ 2.000000000000000e-01, 6.000000000000000e-01, 2.604166666666667e-01;
24 return aw.transpose();
25 }
26 };
27}
28#endif
29
static Eigen::Matrix< double, 3, 4 > abcsissasAndWeights()
Class template defining the GaussLegendre rules for determination of quadrature abscissas and weights...