You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
683 B
20 lines
683 B
// QUADRATURE.H
|
|
// Gaussian quadrature rules for numerically integrate 'smooth' functions over
|
|
// simplexes, triangle for 2d and tetrahedra for 3d.
|
|
|
|
#ifndef QUADRATURE_H
|
|
#define QUADRATURE_H
|
|
|
|
#define one_third 0.333333333333333
|
|
#define two_third 0.666666666666667
|
|
#define one_sixth 0.166666666666667
|
|
#include "../dgtd-performance.hpp"
|
|
|
|
void GetFormula(int, int, fp_t *, fp_t *, fp_t *, fp_t *);
|
|
void GetFormula2dPtr(int, fp_t (*&)[4]);
|
|
void GetFormula3d(int, int, fp_t *, fp_t *, fp_t *, fp_t *, fp_t *);
|
|
void GetFormula3dPtr(int, fp_t (*&)[5]);
|
|
void GetGauss(int, int, int, fp_t *, fp_t *, fp_t *, fp_t *);
|
|
void GetDuffy(int, int, int, int, fp_t *, fp_t *, fp_t *, fp_t *);
|
|
|
|
#endif
|
|
|