diff --git a/MathLib/Integration/GaussLegendre.h b/MathLib/Integration/GaussLegendre.h index bfb9f85e9fdaeeca838a7134b4760e2c597cb7c7..ee2eec82d0aa098ea0e5fb793f7563349802a8cf 100644 --- a/MathLib/Integration/GaussLegendre.h +++ b/MathLib/Integration/GaussLegendre.h @@ -29,6 +29,15 @@ struct GaussLegendre { static const double W[Order]; }; +template <> double const GaussLegendre<1>::X[1]; +template <> double const GaussLegendre<1>::W[1]; +template <> double const GaussLegendre<2>::X[2]; +template <> double const GaussLegendre<2>::W[2]; +template <> double const GaussLegendre<3>::X[3]; +template <> double const GaussLegendre<3>::W[3]; +template <> double const GaussLegendre<4>::X[4]; +template <> double const GaussLegendre<4>::W[4]; + } // namespace MathLib #endif // GAUSSLEGENDRE_H_ diff --git a/MathLib/Integration/GaussLegendrePyramid.h b/MathLib/Integration/GaussLegendrePyramid.h index c2dff83e270669e2a0a665bb2db299b3446adb3e..fbbb471a40bedffbbee3845d5ecd0237a8f8039d 100644 --- a/MathLib/Integration/GaussLegendrePyramid.h +++ b/MathLib/Integration/GaussLegendrePyramid.h @@ -42,6 +42,12 @@ struct GaussLegendrePyramid<3> { static const double W[NPoints]; }; +template <> +const std::array<std::array<double, 3>, GaussLegendrePyramid<1>::NPoints> + GaussLegendrePyramid<1>::X; +template <> +double const GaussLegendrePyramid<1>::W[1]; + } #endif //GAUSSLEGENDREPYRAMID_H_ diff --git a/MathLib/Integration/GaussLegendreTet.h b/MathLib/Integration/GaussLegendreTet.h index 57bbc315076f628fe3d3890f1ed4195febedd622..424307e108d1f4b573da26a8976bd96ed1f11618 100644 --- a/MathLib/Integration/GaussLegendreTet.h +++ b/MathLib/Integration/GaussLegendreTet.h @@ -42,6 +42,11 @@ struct GaussLegendreTet<3> { static const double W[NPoints]; }; +template <> +const std::array<std::array<double, 3>, GaussLegendreTet<1>::NPoints> + GaussLegendreTet<1>::X; +template <> +double const GaussLegendreTet<1>::W[1]; } #endif //GAUSSLEGENDRETET_H_ diff --git a/MathLib/Integration/GaussLegendreTri.h b/MathLib/Integration/GaussLegendreTri.h index 2c7a0d178047f801e4f465386fdc5ea4f72f150a..bd5799f5aece88b7290e249474f2fbea98f80344 100644 --- a/MathLib/Integration/GaussLegendreTri.h +++ b/MathLib/Integration/GaussLegendreTri.h @@ -47,6 +47,11 @@ struct GaussLegendreTri<3> { static const double W[NPoints]; }; +template <> +const std::array<std::array<double, 2>, GaussLegendreTri<1>::NPoints> + GaussLegendreTri<1>::X; +template <> +double const GaussLegendreTri<1>::W[1]; } #endif //GAUSSLEGENDRETRI_H_