Nektar++
Namespaces | Macros | Functions
TestPolylib.cpp File Reference
#include <LibUtilities/Polylib/Polylib.h>
#include <boost/test/tools/floating_point_comparison.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <tuple>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  Nektar
 
namespace  Nektar::UnitTests
 

Macros

#define NPLOWER   5
 Lower range of number of quadrature points to use for unit tests. More...
 
#define NPUPPER   15
 Upper range of number of quadrature points to use for unit tests. More...
 
#define EPS   1e-11
 Tolerance to be used for floating point comparisons. More...
 

Functions

double Nektar::UnitTests::ddot (int n, double *x, int incx, double *y, int incy)
 Dot product two vectors. More...
 
std::vector< double > Nektar::UnitTests::z (NPUPPER)
 
std::vector< double > Nektar::UnitTests::w (NPUPPER)
 
std::vector< double > Nektar::UnitTests::p (NPUPPER)
 
std::vector< double > Nektar::UnitTests::d (NPUPPER *NPUPPER)
 
std::vector< double > Nektar::UnitTests::q (NPUPPER *NPUPPER)
 
void Nektar::UnitTests::TestIntegral (std::function< void(double *, double *, int, double, double)> func, int o)
 Test integrals of Jacobi polynomials. More...
 
void Nektar::UnitTests::TestDifferentiation (std::function< void(double *, double *, int, double, double)> func, std::function< void(double *, double *, int, double, double)> funcD)
 Test derivatives using Gaussian quadrature. More...
 
void Nektar::UnitTests::TestInterpolation (std::function< void(double *, double *, int, double, double)> func, std::function< void(double *, double *, double *, int, int, double, double)> funcI)
 Evaluate interpolation using Gaussian quadrature. More...
 
void Nektar::UnitTests::TestIntegralMatrix (std::function< void(double *, double *, int, double, double)> func, std::function< void(double *, double *, int)> funcQ)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussInt)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauM)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauP)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussLobatto)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussDiff)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauMDiff)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauPDiff)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussLobattoDiff)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussInterp)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauMInterp)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauPInterp)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussLobattoInterp)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussIntMatrix)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauMIntMatrix)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussRadauPIntMatrix)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGaussLobattoIntMatrix)
 
 Nektar::UnitTests::BOOST_AUTO_TEST_CASE (TestGammaFraction)
 

Macro Definition Documentation

◆ EPS

#define EPS   1e-11

Tolerance to be used for floating point comparisons.

Definition at line 52 of file TestPolylib.cpp.

◆ NPLOWER

#define NPLOWER   5

Lower range of number of quadrature points to use for unit tests.

Definition at line 48 of file TestPolylib.cpp.

◆ NPUPPER

#define NPUPPER   15

Upper range of number of quadrature points to use for unit tests.

Definition at line 50 of file TestPolylib.cpp.