|
Nektar++
|
#include <TestLinearSolver.hpp>
Public Member Functions | |
| TestLinearSolver ()=default | |
| virtual | ~TestLinearSolver ()=default |
| void | Configure () |
| Read the session, build the expansion list and allocate the fields the test cases work on. | |
| bool | Compare (TData tol) |
| Compare the computed field to the expected one, with absolute tolerance tol. The two must have the same blocks and components; their interleave widths may differ. | |
Protected Member Functions | |
| void | SetSession () |
| void | SetExpList () |
| void | SetFixture () |
Protected Attributes | |
| std::string | m_meshName = "" |
| SessionReaderSharedPtr | m_session |
| ExpListSharedPtr | m_expList |
| Field< TData, FieldState::Phys > | m_in |
| Field< TData, FieldState::Coeff > | m_out |
| Field< TData, FieldState::Coeff > | m_expected |
A test fixture holding the session, expansion list and fields that the linear system operators are exercised on: a physical space input, a coefficient space output, and the coefficient space result the operator is expected to produce.
The fixture constructor (destructor) is called before (after) each call to the BOOST_FIXTURE_TEST_CASE(<test name>, <fixture>) macro.
See "Single test case fixture" on the Boost.Test documentation for more details: https://www.boost.org/doc/libs/1_82_0/libs/test/doc/html/boost_test/tests_organization/fixtures/case.html
Definition at line 82 of file TestLinearSolver.hpp.
|
default |
|
virtualdefault |
|
inline |
Compare the computed field to the expected one, with absolute tolerance tol. The two must have the same blocks and components; their interleave widths may differ.
Definition at line 106 of file TestLinearSolver.hpp.
References el, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), TestLinearSolver< TData >::m_expected, TestLinearSolver< TData >::m_out, TestLinearSolver< TData >::m_session, and rank.
|
inline |
Read the session, build the expansion list and allocate the fields the test cases work on.
Definition at line 92 of file TestLinearSolver.hpp.
References TestLinearSolver< TData >::SetExpList(), TestLinearSolver< TData >::SetFixture(), and TestLinearSolver< TData >::SetSession().
|
inlineprotected |
Definition at line 233 of file TestLinearSolver.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::Collections::eNoCollection, graph, TestLinearSolver< TData >::m_expList, TestLinearSolver< TData >::m_session, and Nektar::SpatialDomains::MeshGraphIO::Read().
Referenced by TestLinearSolver< TData >::Configure(), and TestLinearADRSolve< TData >::Configure().
|
inlineprotected |
Definition at line 242 of file TestLinearSolver.hpp.
References TestLinearSolver< TData >::m_expected, TestLinearSolver< TData >::m_expList, TestLinearSolver< TData >::m_in, TestLinearSolver< TData >::m_out, and TestLinearSolver< TData >::m_session.
Referenced by TestLinearSolver< TData >::Configure(), and TestLinearADRSolve< TData >::Configure().
|
inlineprotected |
Definition at line 207 of file TestLinearSolver.hpp.
References Nektar::LibUtilities::SessionReader::CreateInstance(), TestLinearSolver< TData >::m_meshName, and TestLinearSolver< TData >::m_session.
Referenced by TestLinearSolver< TData >::Configure(), and TestLinearADRSolve< TData >::Configure().
|
protected |
Definition at line 205 of file TestLinearSolver.hpp.
Referenced by TestLinearSolver< TData >::Compare(), TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), and TestLinearSolver< TData >::SetFixture().
|
protected |
Definition at line 202 of file TestLinearSolver.hpp.
Referenced by TestLinearADRSolve< TData >::BuildVarCoeffs(), TestLinearADRSolve< TData >::Configure(), TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), TestFwdTrans< TData >::RunTestCase(), TestHelmSolve< TData >::RunTestCase(), TestLinearADRSolve< TData >::RunTestCase(), TestPoissonSolve< TData >::RunTestCase(), TestLinearSolver< TData >::SetExpList(), TestLinearSolver< TData >::SetFixture(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), and TestPoissonSolve< TData >::SetTestCase().
|
protected |
Definition at line 203 of file TestLinearSolver.hpp.
Referenced by TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), TestHelmSolve< TData >::RepeatSolve(), TestFwdTrans< TData >::RunTestCase(), TestHelmSolve< TData >::RunTestCase(), TestLinearADRSolve< TData >::RunTestCase(), TestPoissonSolve< TData >::RunTestCase(), TestLinearSolver< TData >::SetFixture(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), and TestPoissonSolve< TData >::SetTestCase().
|
protected |
Definition at line 200 of file TestLinearSolver.hpp.
Referenced by TestLinearSolver< TData >::SetSession().
|
protected |
Definition at line 204 of file TestLinearSolver.hpp.
Referenced by TestLinearSolver< TData >::Compare(), TestHelmSolve< TData >::RepeatSolve(), TestFwdTrans< TData >::RunTestCase(), TestHelmSolve< TData >::RunTestCase(), TestLinearADRSolve< TData >::RunTestCase(), TestPoissonSolve< TData >::RunTestCase(), TestLinearSolver< TData >::SetFixture(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), and TestPoissonSolve< TData >::SetTestCase().
|
protected |
Definition at line 201 of file TestLinearSolver.hpp.
Referenced by TestLinearADRSolve< TData >::BuildExpectedExpList(), TestLinearSolver< TData >::Compare(), TestLinearADRSolve< TData >::ConfigureExpectedSolverInfo(), TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), TestFwdTrans< TData >::RunTestCase(), TestHelmSolve< TData >::RunTestCase(), TestLinearADRSolve< TData >::RunTestCase(), TestPoissonSolve< TData >::RunTestCase(), TestLinearSolver< TData >::SetExpList(), TestLinearSolver< TData >::SetFixture(), TestHelmSolve< TData >::SetGlobalSysSolnInfo(), TestLinearSolver< TData >::SetSession(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), and TestPoissonSolve< TData >::SetTestCase().