|
Nektar++
|
Classes | |
| class | PointTestClass |
| struct | TenD |
| class | TestPoint |
| class | VectorTestClass |
Functions | |
| double | ddot (int n, double *x, int incx, double *y, int incy) |
| Dot product two vectors. | |
| std::vector< double > | z (NPUPPER) |
| std::vector< double > | w (NPUPPER) |
| std::vector< double > | p (NPUPPER) |
| std::vector< double > | d (NPUPPER *NPUPPER) |
| std::vector< double > | q (NPUPPER *NPUPPER) |
| void | TestIntegral (std::function< void(double *, double *, int, double, double)> func, int o) |
| Test integrals of Jacobi polynomials. | |
| void | TestDifferentiation (std::function< void(double *, double *, int, double, double)> func, std::function< void(double *, double *, int, double, double)> funcD) |
| Test derivatives using Gaussian quadrature. | |
| void | 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. | |
| void | TestIntegralMatrix (std::function< void(double *, double *, int, double, double)> func, std::function< void(double *, double *, int)> funcQ) |
| BOOST_AUTO_TEST_CASE (TestGaussInt) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauM) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauP) | |
| BOOST_AUTO_TEST_CASE (TestGaussLobatto) | |
| BOOST_AUTO_TEST_CASE (TestGaussDiff) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauMDiff) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauPDiff) | |
| BOOST_AUTO_TEST_CASE (TestGaussLobattoDiff) | |
| BOOST_AUTO_TEST_CASE (TestGaussInterp) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauMInterp) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauPInterp) | |
| BOOST_AUTO_TEST_CASE (TestGaussLobattoInterp) | |
| BOOST_AUTO_TEST_CASE (TestGaussIntMatrix) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauMIntMatrix) | |
| BOOST_AUTO_TEST_CASE (TestGaussRadauPIntMatrix) | |
| BOOST_AUTO_TEST_CASE (TestGaussLobattoIntMatrix) | |
| BOOST_AUTO_TEST_CASE (TestGammaFraction) | |
| BOOST_AUTO_TEST_CASE (testNekMatrixConstruction) | |
| BOOST_AUTO_TEST_CASE (testNekMatrixBasicMath) | |
| bool | operator== (const PointTestClass &lhs, const PointTestClass &rhs) |
| bool | operator!= (const PointTestClass &lhs, const PointTestClass &rhs) |
| void | test () |
| BOOST_AUTO_TEST_CASE (testNekPointConstruction) | |
| bool | operator== (const VectorTestClass &lhs, const VectorTestClass &rhs) |
| bool | operator!= (const VectorTestClass &lhs, const VectorTestClass &rhs) |
| BOOST_AUTO_TEST_CASE (TestNekVectorConstruction) | |
| BOOST_AUTO_TEST_CASE (TestNekVectorOperators) | |
| BOOST_AUTO_TEST_CASE (TestNekVectorArithmetic) | |
| BOOST_AUTO_TEST_CASE (TestNorms) | |
| BOOST_AUTO_TEST_CASE (TestMatrixVectorMultiply) | |
| BOOST_AUTO_TEST_CASE (TestVectorConstructorsWithSizeArguments) | |
| void | RedirectCerrIfNeeded () |
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGammaFraction | ) |
Definition at line 324 of file TestPolylib.cpp.
References Nektar::LibUtilities::beta, EPS, Polylib::gammaF(), Polylib::gammaFracGammaF(), and test().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussDiff | ) |
Definition at line 264 of file TestPolylib.cpp.
References Polylib::Dgj(), TestDifferentiation(), and Polylib::zwgj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussInt | ) |
Definition at line 244 of file TestPolylib.cpp.
References TestIntegral(), and Polylib::zwgj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussInterp | ) |
Definition at line 284 of file TestPolylib.cpp.
References Polylib::Imgj(), TestInterpolation(), and Polylib::zwgj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussIntMatrix | ) |
Definition at line 304 of file TestPolylib.cpp.
References Polylib::Qg(), TestIntegralMatrix(), and Polylib::zwgj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussLobatto | ) |
Definition at line 259 of file TestPolylib.cpp.
References TestIntegral(), and Polylib::zwglj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussLobattoDiff | ) |
Definition at line 279 of file TestPolylib.cpp.
References Polylib::Dglj(), TestDifferentiation(), and Polylib::zwglj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussLobattoInterp | ) |
Definition at line 299 of file TestPolylib.cpp.
References Polylib::Imglj(), TestInterpolation(), and Polylib::zwglj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussLobattoIntMatrix | ) |
Definition at line 319 of file TestPolylib.cpp.
References Polylib::Qg(), TestIntegralMatrix(), and Polylib::zwglj().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauM | ) |
Definition at line 249 of file TestPolylib.cpp.
References TestIntegral(), and Polylib::zwgrjm().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauMDiff | ) |
Definition at line 269 of file TestPolylib.cpp.
References Polylib::Dgrjm(), TestDifferentiation(), and Polylib::zwgrjm().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauMInterp | ) |
Definition at line 289 of file TestPolylib.cpp.
References Polylib::Imgrjm(), TestInterpolation(), and Polylib::zwgrjm().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauMIntMatrix | ) |
Definition at line 309 of file TestPolylib.cpp.
References Polylib::Qg(), TestIntegralMatrix(), and Polylib::zwgrjm().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauP | ) |
Definition at line 254 of file TestPolylib.cpp.
References TestIntegral(), and Polylib::zwgrjp().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauPDiff | ) |
Definition at line 274 of file TestPolylib.cpp.
References Polylib::Dgrjp(), TestDifferentiation(), and Polylib::zwgrjp().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauPInterp | ) |
Definition at line 294 of file TestPolylib.cpp.
References Polylib::Imgrjp(), TestInterpolation(), and Polylib::zwgrjp().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestGaussRadauPIntMatrix | ) |
Definition at line 314 of file TestPolylib.cpp.
References Polylib::Qg(), TestIntegralMatrix(), and Polylib::zwgrjp().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestMatrixVectorMultiply | ) |
Definition at line 189 of file testNekVector.cpp.
References Nektar::NekVector< DataType >::GetDimension(), and Nektar::Transpose().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | testNekMatrixBasicMath | ) |
Definition at line 429 of file testNekMatrix.cpp.
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | testNekMatrixConstruction | ) |
Definition at line 408 of file testNekMatrix.cpp.
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | testNekPointConstruction | ) |
Definition at line 103 of file testNekPoint.cpp.
References Nektar::NekPoint< data_type >::x(), Nektar::NekPoint< data_type >::y(), and Nektar::NekPoint< data_type >::z().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestNekVectorArithmetic | ) |
Definition at line 174 of file testNekVector.cpp.
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestNekVectorConstruction | ) |
Definition at line 94 of file testNekVector.cpp.
References Nektar::NekVector< DataType >::GetDimension().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestNekVectorOperators | ) |
Definition at line 128 of file testNekVector.cpp.
References Nektar::NekVector< DataType >::x(), Nektar::NekVector< DataType >::y(), and Nektar::NekVector< DataType >::z().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestNorms | ) |
Definition at line 178 of file testNekVector.cpp.
References Nektar::NekVector< DataType >::InfinityNorm(), Nektar::NekVector< DataType >::L1Norm(), Nektar::NekVector< DataType >::L2Norm(), and tinysimd::sqrt().
| Nektar::UnitTests::BOOST_AUTO_TEST_CASE | ( | TestVectorConstructorsWithSizeArguments | ) |
Definition at line 335 of file testNekVector.cpp.
References Nektar::NekVector< DataType >::begin(), Nektar::NekVector< DataType >::end(), Nektar::eWrapper, Nektar::NekVector< DataType >::GetDimension(), and Nektar::NekVector< DataType >::GetRows().
| std::vector< double > Nektar::UnitTests::d | ( | NPUPPER * | NPUPPER | ) |
Referenced by TestDifferentiation(), and TestInterpolation().
| double Nektar::UnitTests::ddot | ( | int | n, |
| double * | x, | ||
| int | incx, | ||
| double * | y, | ||
| int | incy | ||
| ) |
Dot product two vectors.
Definition at line 55 of file TestPolylib.cpp.
Referenced by TestDifferentiation(), TestIntegral(), TestIntegralMatrix(), and TestInterpolation().
| bool Nektar::UnitTests::operator!= | ( | const PointTestClass & | lhs, |
| const PointTestClass & | rhs | ||
| ) |
Definition at line 76 of file testNekPoint.cpp.
| bool Nektar::UnitTests::operator!= | ( | const VectorTestClass & | lhs, |
| const VectorTestClass & | rhs | ||
| ) |
Definition at line 84 of file testNekVector.cpp.
| bool Nektar::UnitTests::operator== | ( | const PointTestClass & | lhs, |
| const PointTestClass & | rhs | ||
| ) |
Definition at line 71 of file testNekPoint.cpp.
References Nektar::UnitTests::PointTestClass::value().
| bool Nektar::UnitTests::operator== | ( | const VectorTestClass & | lhs, |
| const VectorTestClass & | rhs | ||
| ) |
Definition at line 79 of file testNekVector.cpp.
References Nektar::UnitTests::VectorTestClass::value().
| std::vector< double > Nektar::UnitTests::p | ( | NPUPPER | ) |
Referenced by test(), TestDifferentiation(), TestIntegral(), TestIntegralMatrix(), and TestInterpolation().
| std::vector< double > Nektar::UnitTests::q | ( | NPUPPER * | NPUPPER | ) |
Referenced by TestIntegralMatrix().
| void Nektar::UnitTests::RedirectCerrIfNeeded | ( | ) |
Definition at line 41 of file util.cpp.
References Nektar::ErrorUtil::HasCustomErrorStream(), and Nektar::ErrorUtil::SetErrorStream().
Referenced by Nektar::SharedArrayUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::DiagonalMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::FullMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::LowerTriangularStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::SymmetricMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::UpperTriangularUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::FullMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::BandedMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::MatrixUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::MatrixUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::BandedMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::MatrixUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::ConsistentObjectAccessUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::BandedMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::BandedMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::BandedMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE(), and Nektar::BandedMatrixStoragePolicyUnitTests::BOOST_AUTO_TEST_CASE().
| void Nektar::UnitTests::test | ( | ) |
Definition at line 92 of file testNekPoint.cpp.
References p().
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Test derivatives using Gaussian quadrature.
This routine evaluates the deriatives
\[ \frac{d}{dx}(x^n) = nx^{n-1} \]
using \( -0.5 \leq \alpha,\beta \leq 5 \) and using \( N \) points where \( N \) lies between NPLOWER and NPUPPER. Tolerance is taken using the EPS value.
Definition at line 116 of file TestPolylib.cpp.
References Nektar::LibUtilities::beta, d(), ddot(), EPS, NPLOWER, NPUPPER, p(), w(), and z().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Test integrals of Jacobi polynomials.
This routine evaluates the integral
\[ \int_{-1}^1 (1-x)^\alpha (1+x)^\beta P_n^{\alpha,\beta} dx = 0 \]
using \( -0.5 \leq \alpha,\beta \leq 5 \) and using \( N \) points where \( N \) lies between NPLOWER and NPUPPER. Tolerance is taken using the EPS value.
Definition at line 81 of file TestPolylib.cpp.
References Nektar::LibUtilities::beta, ddot(), EPS, Polylib::jacobfd(), NPLOWER, NPUPPER, p(), w(), and z().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 205 of file TestPolylib.cpp.
References Nektar::LibUtilities::beta, ddot(), EPS, NPLOWER, NPUPPER, p(), q(), w(), and z().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Evaluate interpolation using Gaussian quadrature.
This routine evaluates the interpolation of \( z^n \) to \( x^n \), where \( z \) are the quadrature zeros and \( x \) are the equispaced points
\[ x_n = \frac{2n}{N-1} - 1, \quad 0\leq n\leq N, \]
using \( -0.5 \leq \alpha,\beta \leq 5 \) and using \( N \) points where \( N \) lies between NPLOWER and NPUPPER. Tolerance is taken using the EPS value.
Definition at line 165 of file TestPolylib.cpp.
References Nektar::LibUtilities::beta, d(), ddot(), EPS, NPLOWER, NPUPPER, p(), w(), and z().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| std::vector< double > Nektar::UnitTests::w | ( | NPUPPER | ) |
Referenced by TestDifferentiation(), TestIntegral(), TestIntegralMatrix(), and TestInterpolation().
| std::vector< double > Nektar::UnitTests::z | ( | NPUPPER | ) |
Referenced by TestDifferentiation(), TestIntegral(), TestIntegralMatrix(), and TestInterpolation().