|
Nektar++
|
#include <TestPhysTraceExtract.hpp>
Public Member Functions | |
| TestPhysTraceExtract ()=default | |
| void | Configure (const bool useGLLTracePoints=false) |
| Build the session, expansion list and fields. | |
| void | SetFixture (const unsigned int nhomo) override |
| void | SetTestCase () |
| void | RunTestCase (bool nonCollocated=false) |
| void | RunTestCaseExtractTrace (bool nonCollocated=false) |
| LocalRegions::ExpansionSharedPtr | GLLTraceExp (const LocalRegions::ExpansionSharedPtr &expPtr, const unsigned traceid) |
| Build the trace expansion on the Gauss-Lobatto trace points. | |
| void | ExpectedSolution () |
Public Member Functions inherited from TestOp< TData, FieldState::Phys, FieldState::Phys > | |
| 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 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. | |
Protected Attributes | |
| bool | m_useGLLTracePoints = false |
| Whether the fields are sized for, and the operator asked for, the Gauss-Lobatto trace points rather than the element's own; set by Configure(). | |
Protected Attributes inherited from TestOp< TData, FieldState::Phys, FieldState::Phys > | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from TestOp< TData, FieldState::Phys, FieldState::Phys > | |
| 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. | |
Definition at line 47 of file TestPhysTraceExtract.hpp.
|
default |
|
inline |
Build the session, expansion list and fields.
| useGLLTracePoints | Extract onto the Gauss-Lobatto trace points rather than the element's own; see PhysTraceExtractOp:: SetUseGLLTracePoints(). It sizes the storage, so it is fixed here rather than at the call to the operator. |
Definition at line 63 of file TestPhysTraceExtract.hpp.
References TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_explist, TestPhysTraceExtract< TData >::m_useGLLTracePoints, TestOp< TData, FieldState::Phys, FieldState::Phys >::SetExpList(), TestPhysTraceExtract< TData >::SetFixture(), and TestOp< TData, FieldState::Phys, FieldState::Phys >::SetSession().
|
inline |
Definition at line 281 of file TestPhysTraceExtract.hpp.
References Nektar::StdRegions::eDir1FwdDir1_Dir2FwdDir2, Nektar::ErrorUtil::efatal, Nektar::StdRegions::eForwards, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_expected, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), TestPhysTraceExtract< TData >::GLLTraceExp(), Nektar::LibUtilities::Hex, TestPhysTraceExtract< TData >::m_useGLLTracePoints, NEKERROR, Nektar::LibUtilities::NodalPrism, Nektar::LibUtilities::NodalPyr, Nektar::LibUtilities::NodalTet, Nektar::LibUtilities::NodalTri, Nektar::LibUtilities::Prism, Nektar::LibUtilities::Pyr, Nektar::LibUtilities::Quad, Nektar::LibUtilities::Seg, Nektar::LibUtilities::Tet, and Nektar::LibUtilities::Tri.
Referenced by TestPhysTraceExtract< TData >::SetTestCase().
|
inline |
Build the trace expansion on the Gauss-Lobatto trace points.
The counterpart of Expansion::GetLocTraceExp() for the variant the operator is being asked for, so that the legacy GetTracePhysVals() below interpolates onto the same points the operator writes. Only a three-dimensional element has anything to choose: a triangle already hands its collapsed edges a Gauss-Lobatto basis with the extra point.
| expPtr | Element whose trace is wanted. |
| traceid | Trace of that element. |
Definition at line 258 of file TestPhysTraceExtract.hpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
Referenced by TestPhysTraceExtract< TData >::ExpectedSolution().
|
inline |
Definition at line 124 of file TestPhysTraceExtract.hpp.
References Nektar::MultiRegions::PhysTraceExtractOp< TData >::Create(), TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_in, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_out, TestPhysTraceExtract< TData >::m_useGLLTracePoints, and TestOp< TData, FieldState::Phys, FieldState::Phys >::session.
|
inline |
Definition at line 142 of file TestPhysTraceExtract.hpp.
References Nektar::MultiRegions::PhysTraceExtractOp< TData >::Create(), Nektar::ErrorUtil::efatal, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_in, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_out, Nektar::LibUtilities::Hex, TestPhysTraceExtract< TData >::m_useGLLTracePoints, NEKERROR, Nektar::LibUtilities::NodalPrism, Nektar::LibUtilities::NodalPyr, Nektar::LibUtilities::NodalTet, Nektar::LibUtilities::NodalTri, Nektar::LibUtilities::Prism, Nektar::LibUtilities::Pyr, Nektar::LibUtilities::Quad, TestOp< TData, FieldState::Phys, FieldState::Phys >::session, Nektar::LibUtilities::Tet, and Nektar::LibUtilities::Tri.
|
inlineoverridevirtual |
Reimplemented from TestOp< TData, FieldState::Phys, FieldState::Phys >.
Definition at line 72 of file TestPhysTraceExtract.hpp.
References TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_expected, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_explist, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_in, TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_out, TestPhysTraceExtract< TData >::m_useGLLTracePoints, and TestOp< TData, FieldState::Phys, FieldState::Phys >::session.
Referenced by TestPhysTraceExtract< TData >::Configure().
|
inline |
Definition at line 95 of file TestPhysTraceExtract.hpp.
References el, TestPhysTraceExtract< TData >::ExpectedSolution(), TestOp< TData, FieldState::Phys, FieldState::Phys >::fixt_in, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes().
|
protected |
Whether the fields are sized for, and the operator asked for, the Gauss-Lobatto trace points rather than the element's own; set by Configure().
Definition at line 549 of file TestPhysTraceExtract.hpp.
Referenced by TestPhysTraceExtract< TData >::Configure(), TestPhysTraceExtract< TData >::ExpectedSolution(), TestPhysTraceExtract< TData >::RunTestCase(), TestPhysTraceExtract< TData >::RunTestCaseExtractTrace(), and TestPhysTraceExtract< TData >::SetFixture().