|
Nektar++
|
#include <TestOp.hpp>
Public Member Functions | |
| TestOp ()=default | |
| virtual | ~TestOp () |
| void | Configure (void) |
| void | Configure3DH1 (const unsigned int nhomo=1) |
| void | Configure3DH2 (const unsigned int nhomoY=1, const unsigned int nhomoZ=1) |
| void | SetSession (void) |
| void | SetExpList (void) |
| void | SetExpList3DH1 (const unsigned int nhomo=1) |
| void | SetExpList3DH2 (const unsigned int nhomoY=1, const unsigned int nhomoZ=1) |
| virtual void | SetFixture (const unsigned int nhomo) |
| virtual bool | Compare (TData tol) |
| Compare this field to another field, with absolute tolerance tol. The two must have the same blocks and components; their interleave widths may differ. | |
Static Public Member Functions | |
| template<typename TField > | |
| static void | MixInterleaveWidths (TField &field) |
Put the blocks of field at alternating interleave widths, the execution space's vector width on even blocks and 1 on odd ones, reshaping the data in place: a field whose blocks differ in width, for an operator that must read any mix, such as the trace flux, which addresses each trace at the width of the element block it lies in. On Serial every width is 1 and nothing changes. | |
Protected Attributes | |
| std::string | meshName = "" |
| Field< TData, stateIn > * | fixt_in = nullptr |
| Field< TData, stateOut > * | fixt_out = nullptr |
| Field< TData, stateIn > * | fixt_out_2 = nullptr |
| Field< TData, stateOut > * | fixt_expected = nullptr |
| std::shared_ptr< MultiRegions::ExpList > | fixt_explist |
| LibUtilities::SessionReaderSharedPtr | session |
A test fixture responsible for making available input and output Field objects. The structure constructor (destructor) is called before (after) each call to BOOST_FIXTURE_TEST_CASE(<test name>, TestOp) 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 86 of file TestOp.hpp.
|
default |
|
inlinevirtual |
Definition at line 91 of file TestOp.hpp.
References TestOp< TData, stateIn, stateOut, TExpList >::fixt_expected, TestOp< TData, stateIn, stateOut, TExpList >::fixt_in, TestOp< TData, stateIn, stateOut, TExpList >::fixt_out, and TestOp< TData, stateIn, stateOut, TExpList >::fixt_out_2.
|
inlinevirtual |
Compare this field to another field, with absolute tolerance tol. The two must have the same blocks and components; their interleave widths may differ.
Reimplemented in TestBndCondPhys< TData >.
Definition at line 335 of file TestOp.hpp.
References el, TestOp< TData, stateIn, stateOut, TExpList >::fixt_expected, TestOp< TData, stateIn, stateOut, TExpList >::fixt_out, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), rank, and TestOp< TData, stateIn, stateOut, TExpList >::session.
|
inline |
Definition at line 113 of file TestOp.hpp.
References TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, TestOp< TData, stateIn, stateOut, TExpList >::SetExpList(), TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::SetSession().
|
inline |
Definition at line 121 of file TestOp.hpp.
References TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, TestOp< TData, stateIn, stateOut, TExpList >::SetExpList3DH1(), TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::SetSession().
|
inline |
Definition at line 129 of file TestOp.hpp.
References TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, TestOp< TData, stateIn, stateOut, TExpList >::SetExpList3DH2(), TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::SetSession().
|
inlinestatic |
Put the blocks of field at alternating interleave widths, the execution space's vector width on even blocks and 1 on odd ones, reshaping the data in place: a field whose blocks differ in width, for an operator that must read any mix, such as the trace flux, which addresses each trace at the width of the element block it lies in. On Serial every width is 1 and nothing changes.
Definition at line 317 of file TestOp.hpp.
|
inline |
Definition at line 165 of file TestOp.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::Collections::eNoCollection, TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, graph, Nektar::SpatialDomains::MeshGraphIO::Read(), and TestOp< TData, stateIn, stateOut, TExpList >::session.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Configure().
|
inline |
Definition at line 194 of file TestOp.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::Collections::eNoCollection, TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, graph, Nektar::SpatialDomains::MeshGraphIO::Read(), and TestOp< TData, stateIn, stateOut, TExpList >::session.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH1().
|
inline |
Definition at line 234 of file TestOp.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::Collections::eNoCollection, TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, graph, Nektar::SpatialDomains::MeshGraphIO::Read(), and TestOp< TData, stateIn, stateOut, TExpList >::session.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH2().
|
inlinevirtual |
Reimplemented in TestAdvection< TData >, TestAdvectionDealias< TData >, TestCurlCurl< TData >, TestDivergence< TData >, TestFwdTransBC< TData >, TestIProductWRTDerivBase< TData >, TestIProductWRTPhysNormalDerivTrace< TData >, TestIProductWRTPhysTrace< TData >, TestPhysDeriv< TData >, TestPhysTraceExtract< TData >, TestPhysTraceExtractBndCond< TData >, TestPhysGalerkinProject1DScaled< TData >, and TestPhysInterp1DScaled< TData >.
Definition at line 289 of file TestOp.hpp.
References TestOp< TData, stateIn, stateOut, TExpList >::fixt_expected, TestOp< TData, stateIn, stateOut, TExpList >::fixt_explist, TestOp< TData, stateIn, stateOut, TExpList >::fixt_in, TestOp< TData, stateIn, stateOut, TExpList >::fixt_out, and TestOp< TData, stateIn, stateOut, TExpList >::session.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Configure(), TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH1(), and TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH2().
|
inline |
Definition at line 138 of file TestOp.hpp.
References Nektar::LibUtilities::SessionReader::CreateInstance(), TestOp< TData, stateIn, stateOut, TExpList >::meshName, and TestOp< TData, stateIn, stateOut, TExpList >::session.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Configure(), TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH1(), and TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH2().
|
protected |
Definition at line 438 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Compare(), TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::~TestOp().
|
protected |
Definition at line 439 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Configure(), TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH1(), TestOp< TData, stateIn, stateOut, TExpList >::Configure3DH2(), TestOp< TData, stateIn, stateOut, TExpList >::SetExpList(), TestOp< TData, stateIn, stateOut, TExpList >::SetExpList3DH1(), TestOp< TData, stateIn, stateOut, TExpList >::SetExpList3DH2(), and TestOp< TData, stateIn, stateOut, TExpList >::SetFixture().
|
protected |
Definition at line 435 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::~TestOp().
|
protected |
Definition at line 436 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Compare(), TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::~TestOp().
|
protected |
Definition at line 437 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::~TestOp().
|
protected |
Definition at line 434 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::SetSession().
|
protected |
Definition at line 440 of file TestOp.hpp.
Referenced by TestOp< TData, stateIn, stateOut, TExpList >::Compare(), TestOp< TData, stateIn, stateOut, TExpList >::SetExpList(), TestOp< TData, stateIn, stateOut, TExpList >::SetExpList3DH1(), TestOp< TData, stateIn, stateOut, TExpList >::SetExpList3DH2(), TestOp< TData, stateIn, stateOut, TExpList >::SetFixture(), and TestOp< TData, stateIn, stateOut, TExpList >::SetSession().