|
Nektar++
|
#include <TestAssmbScatr.hpp>
Public Member Functions | |
| TestAssmbScatr ()=default | |
| void | SetTestCase (bool ZeroDir=false) |
| void | RunTestCase () |
| void | RunTestCaseZeroDir () |
| std::shared_ptr< AssmbScatrOp< TData > > | CreateOp (bool ZeroDir=false) |
Create the operator under test, the zero-Dirichlet variant if ZeroDir is set. | |
| void | RunTestCaseAtWidth (AssmbScatrOp< TData > &op, const unsigned int interleaveWidth) |
Reshape the input to interleaveWidth and apply op to it. | |
| void | ExpectedSolution (bool ZeroDir=false) |
Public Member Functions inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField > | |
| 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. | |
Additional Inherited Members | |
Static Public Member Functions inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField > | |
| 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 inherited from TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField > | |
| std::string | meshName |
| Field< TData, stateIn > * | fixt_in |
| Field< TData, stateOut > * | fixt_out |
| Field< TData, stateIn > * | fixt_out_2 |
| Field< TData, stateOut > * | fixt_expected |
| std::shared_ptr< MultiRegions::ExpList > | fixt_explist |
| LibUtilities::SessionReaderSharedPtr | session |
Definition at line 51 of file TestAssmbScatr.hpp.
|
default |
|
inline |
Create the operator under test, the zero-Dirichlet variant if ZeroDir is set.
Definition at line 120 of file TestAssmbScatr.hpp.
References Nektar::MultiRegions::AssmbScatrOp< TData >::Create(), Nektar::MultiRegions::AssmbScatrZeroDirOp< TData >::Create(), TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_explist, and TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::session.
|
inline |
Definition at line 141 of file TestAssmbScatr.hpp.
References Nektar::Collections::eNoCollection, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_expected, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), graph, Nektar::SpatialDomains::MeshGraphIO::Read(), TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::session, Nektar::LibUtilities::Field< TData, TState >::ToArray(), and Vmath::Zero().
Referenced by TestAssmbScatr< TData >::SetTestCase().
|
inline |
Definition at line 86 of file TestAssmbScatr.hpp.
References Nektar::MultiRegions::AssmbScatrOp< TData >::Create(), TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_in, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_out, Nektar::MultiRegions::Operator< TData >::GetOpExecSpace(), Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), and TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::session.
|
inline |
Reshape the input to interleaveWidth and apply op to it.
Definition at line 132 of file TestAssmbScatr.hpp.
References Nektar::MultiRegions::AssmbScatrOp< TData >::Apply(), TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_in, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_out, Nektar::MultiRegions::Operator< TData >::GetOpExecSpace(), Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), and TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::session.
|
inline |
Definition at line 102 of file TestAssmbScatr.hpp.
References Nektar::MultiRegions::AssmbScatrZeroDirOp< TData >::Create(), TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_explist, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_in, TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_out, Nektar::MultiRegions::Operator< TData >::GetOpExecSpace(), Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), and TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::session.
|
inline |
Definition at line 58 of file TestAssmbScatr.hpp.
References el, TestAssmbScatr< TData >::ExpectedSolution(), TestOp< TData, FieldState::Coeff, FieldState::Coeff, ContField >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), and Nektar::LibUtilities::Field< TData, TState >::GetNumComponents().