Revision 74ea319e2b08364638ce1a3f91bff59d1c546f40 authored by Tom Fischer on 20 September 2021, 07:24:10 UTC, committed by Tom Fischer on 20 September 2021, 07:24:10 UTC
Small code improvements - mainly removing unnecessary includes

See merge request ogs/ogs!3789
2 parent s 516ed66 + a7ff9cf
Raw File
GaussLegendre.cpp
/**
 * \author Norihiro Watanabe
 * \date   2013-08-13
 *
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 */

#include "GaussLegendre.h"

namespace MathLib
{
template <>
double const GaussLegendre<1>::X[1] = {0.};
template <>
double const GaussLegendre<1>::W[1] = {2.};

template <>
double const GaussLegendre<2>::X[2] = {0.577350269189626, -0.577350269189626};
template <>
double const GaussLegendre<2>::W[2] = {1., 1.};

template <>
double const GaussLegendre<3>::X[3] = {0.774596669241483, 0.,
                                       -0.774596669241483};
template <>
double const GaussLegendre<3>::W[3] = {5. / 9, 8. / 9, 5. / 9};

template <>
double const GaussLegendre<4>::X[4] = {-0.861136311594053, -0.339981043584856,
                                       0.339981043584856, 0.861136311594053};
template <>
double const GaussLegendre<4>::W[4] = {0.347854845137454, 0.652145154862546,
                                       0.652145154862546, 0.347854845137454};

}  // namespace MathLib
back to top