|
Nektar++
|
A Field represents expansion data to be operated on. More...
#include <Field.hpp>
Public Types | |
| typedef TData | value_type |
Public Member Functions | |
| Field ()=default | |
| ~Field () | |
| Field (const std::string name, const std::vector< BlockAttributes< TState > > blockAttr, const unsigned int num_components, const unsigned int num_homo_modes, const MemAllocType &memAllocType=eHostPageable, const size_t alignment=NektarSpaces::host_memory_alignment) | |
| Construct a new Field object. | |
| Field (const std::vector< BlockAttributes< TState > > blockAttr, const unsigned int num_components, const unsigned int num_homo_modes, const MemAllocType &memAllocType=eHostPageable, const size_t alignment=NektarSpaces::host_memory_alignment) | |
| Construct a new Field object. | |
| Field (const std::string name, const std::vector< BlockAttributes< TState > > blockAttr, const std::vector< std::string > components, const unsigned int num_homo_modes, const MemAllocType &memAllocType=eHostPageable, const size_t alignment=NektarSpaces::host_memory_alignment) | |
| Construct a new Field object. | |
| Field (const std::vector< BlockAttributes< TState > > blockAttr, const std::vector< std::string > components, const unsigned int num_homo_modes, const MemAllocType &memAllocType=eHostPageable, const size_t alignment=NektarSpaces::host_memory_alignment) | |
| Construct a new Field object. | |
| Field (Field &&rhs) | |
| Construct a new Field object by moving storage from an existing Field object. | |
| Field (const Field &)=delete | |
| Constructor methods - No copy methods. | |
| Field & | operator= (const Field &)=delete |
| Field & | operator= (Field &&rhs) |
| Move assignment operator. | |
| operator bool () const | |
| Whether the field has been given storage by a custom constructor. | |
| std::vector< unsigned int > | GetInterleaveWidth (void) const |
| void | SetInterleaveWidth (const unsigned int &interleaveWidth) |
| void | SetInterleaveWidth (const std::vector< unsigned int > &interleaveWidths) |
| void | SetInterleaveWidth (Field &field) |
| void | ReshapeStorage (const unsigned int &interleaveWidth, const std::string &execSpace) |
| void | ReshapeStorage (const std::vector< unsigned int > &interleaveWidths, const std::string &execSpace) |
| template<typename MemSpace > | |
| void | Initialize (const TData val, const unsigned int streamID=0) |
Templated initialize method: set every entry to val, but the padding, which is zero. | |
| template<typename TDataOut = TData, class Alloc = std::allocator<TDataOut>> | |
| std::vector< TDataOut, Alloc > | ToVector () |
| Copy the data to a std::vector, component by component and element by element, without padding, whatever the interleave width of each block. | |
| template<typename TDataOut = TData> | |
| Nektar::Array< Nektar::OneD, TDataOut > | ToArray () |
| Copy the data to a Nektar::Array, component by component and element by element, without padding, whatever the interleave width of each block. | |
| template<typename MemSpace > | |
| void | Copy (Field &field) |
| Templated copy method. This method copies data from a Field. | |
| template<typename MemSpace , typename TDataIn , class Alloc = std::allocator<TDataIn>> | |
| void | CopyVector (const std::vector< TDataIn, Alloc > &array) |
| Templated copy method. This method copies data from a std::vector laid out as ToVector() returns it, and interleaves it to the width of each block. | |
| template<typename MemSpace , typename TDataIn > | |
| void | CopyArray (const Nektar::Array< Nektar::OneD, TDataIn > &array) |
| Templated copy method. This method copies data from a Nektar::Array<Nektar::OneD, TDataIn> laid out as ToArray() returns it, and interleaves it to the width of each block. | |
| std::vector< BlockAccessor< TData, TState > > & | GetBlocks () |
| Get BlockAccessors for the field. | |
| size_t | size () const |
| Gets the size of the field. | |
| std::string | GetName (void) const |
| Gets the name of the field. | |
| unsigned int | GetNumComponents () const |
| Gets the number of components for a vector field. | |
| std::vector< std::string > | GetComponentNames () const |
| Gets a copy of the components names for a vector field. | |
| unsigned int | GetNumHomoModes () const |
| Gets the number of homogeneous modes. | |
Protected Member Functions | |
| void | ReleaseStorage () |
| Free the contiguous host and device storage this field owns, allocated by AllocateFieldStorage(), and mark the field uninstantiated. | |
| template<typename TDataOut > | |
| void | DeInterleaveToHostPtr (TDataOut *dst, const size_t compSize) |
| Copy the data to host memory, component by component and element by element, without padding. Each block is de-interleaved from its own interleave width during the copy; the field itself is left unchanged. | |
| template<typename MemSpace , typename TDataIn > | |
| void | InterleaveFromHostPtr (const TDataIn *src, const size_t compSize) |
Copy data from host memory, laid out component by component and element by element without padding, to the storage in MemSpace. Each block is copied with an interleave width of 1 and its storage is then reshaped back to its own interleave width. | |
Static Protected Member Functions | |
| template<typename MemSpace > | |
| static void | AllocateFieldStorage (Field< TData, TState > *field) |
| Allocate contiguous host OR device memory accross all MemoryRegion objects belonging to a Field object pointer. | |
Protected Attributes | |
| bool | m_instantiated = false |
| Flag indicating if the current object has been instantiated. | |
| std::string | m_name |
| std::vector< std::string > | m_component_names |
| unsigned int | m_num_homo_modes = 1 |
| TData * | m_host = nullptr |
| TData * | m_device = nullptr |
| std::vector< BlockAccessor< TData, TState > > | m_block_accessors |
| MemAllocType | m_memAllocType |
| size_t | m_alignment = NektarSpaces::host_memory_alignment |
| std::shared_ptr< SharedFieldStorage< TData > > | m_sharedStorage |
| Shared storage the field points into, if any. | |
| size_t | m_sharedStorageOffset = 0 |
| Offset of the field in m_sharedStorage. | |
Private Member Functions | |
| Field (const std::string name, const std::vector< BlockAttributes< TState > > blockAttr, const std::vector< std::string > components, const unsigned int num_homo_modes, const std::shared_ptr< SharedFieldStorage< TData > > &storage, const size_t offset) | |
| Construct a new Field object in storage shared with other fields. For use by MultiField only. | |
Static Private Member Functions | |
| template<typename MemSpace > | |
| static void | ZeroPadding (BlockAccessor< TData, TState > &block, const unsigned int streamID) |
Zero the padding of block in place, in MemSpace. | |
Friends | |
| template<typename TDataField , FieldState TStateField> | |
| class | BlockAccessor |
| class | MultiField< TData, TState > |
A Field represents expansion data to be operated on.
| TData | The floating-point representation used by the field. |
| TState | A FieldState value representing the state of the field. |
Definition at line 53 of file LibUtilities/BasicUtils/Field/Field.hpp.
| typedef TData Nektar::LibUtilities::Field< TData, TState >::value_type |
Definition at line 705 of file LibUtilities/BasicUtils/Field/Field.hpp.
|
default |
|
inline |
Definition at line 60 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
inline |
Construct a new Field object.
| name | - Name of the field object. |
| blockAttr | - Block attributes. |
| num_components | - Number of components. |
| num_homo_modes | - Number of homogeneous modes. |
| memAllocType | - [ eHostPageable, eHostPinned, eDeviceMemoryPool, eHostPinnedDeviceMemoryPool] |
| alignment | - Memory alignment to use. |
Definition at line 76 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::BlockAccessor, and Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
|
inline |
Construct a new Field object.
| blockAttr | - Block attributes. |
| num_components | - Number of components. |
| num_homo_modes | - Number of homogeneous modes. |
| memAllocType | - [ eHostPageable, eHostPinned, eDeviceMemoryPool, eHostPinnedDeviceMemoryPool] |
| alignment | - Memory alignment to use. |
Definition at line 107 of file LibUtilities/BasicUtils/Field/Field.hpp.
|
inline |
Construct a new Field object.
| name | - Name of the field object. |
| blockAttr | - Block attributes. |
| components | - Names of components for vector field. |
| num_homo_modes | - Number of homogeneous modes. |
| memAllocType | - [ eHostPageable, eHostPinned, eDeviceMemoryPool, eHostPinnedDeviceMemoryPool] |
| alignment | - Memory alignment to use. |
Definition at line 127 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::BlockAccessor, and Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
|
inline |
Construct a new Field object.
| blockAttr | - Block attributes. |
| components | - Names of components for vector field. |
| num_homo_modes | - Number of homogeneous modes. |
| memAllocType | - [ eHostPageable, eHostPinned, eDeviceMemoryPool, eHostPinnedDeviceMemoryPool] |
| alignment | - Memory alignment to use. |
Definition at line 159 of file LibUtilities/BasicUtils/Field/Field.hpp.
|
inline |
Construct a new Field object by moving storage from an existing Field object.
| rhs |
Definition at line 175 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::eHostPageable, Nektar::NektarSpaces::host_memory_alignment, and Nektar::LibUtilities::Field< TData, TState >::m_block_accessors.
|
delete |
Constructor methods - No copy methods.
|
inlineprivate |
Construct a new Field object in storage shared with other fields. For use by MultiField only.
The field holds no storage of its own: its blocks point into storage from offset onwards, which must leave room for the whole field.
| name | - Name of the field object. |
| blockAttr | - Block attributes. |
| components | - Names of components for vector field. |
| num_homo_modes | - Number of homogeneous modes. |
| storage | - Storage the field points into. |
| offset | - Offset of the field in storage. |
Definition at line 1017 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_sharedStorage, Nektar::LibUtilities::Field< TData, TState >::m_sharedStorageOffset, NEKERROR, and Nektar::LibUtilities::Field< TData, TState >::size().
|
inlinestaticprotected |
Allocate contiguous host OR device memory accross all MemoryRegion objects belonging to a Field object pointer.
| field | - Field object pointer. |
Definition at line 759 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::deviceMalloc(), Nektar::deviceMemset(), Nektar::eHostPageable, Nektar::eHostPinned, Nektar::hostMalloc(), Nektar::hostMallocPinned(), Nektar::nekStreamSynchronize(), and Nektar::LibUtilities::Field< TData, TState >::size().
|
inline |
Templated copy method. This method copies data from a Field.
| field | - Field to copy from |
Definition at line 462 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetName(), Nektar::LibUtilities::Field< TData, TState >::m_instantiated, NEKERROR, and Nektar::LibUtilities::Field< TData, TState >::size().
|
inline |
Templated copy method. This method copies data from a Nektar::Array<Nektar::OneD, TDataIn> laid out as ToArray() returns it, and interleaves it to the width of each block.
| array | - Nektar::Array to copy from |
Definition at line 564 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetName(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
|
inline |
Templated copy method. This method copies data from a std::vector laid out as ToVector() returns it, and interleaves it to the width of each block.
| array | - std::vector to copy from |
Definition at line 521 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetName(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineprotected |
Copy the data to host memory, component by component and element by element, without padding. Each block is de-interleaved from its own interleave width during the copy; the field itself is left unchanged.
| dst | - host memory to copy to |
| compSize | - number of values of one component in dst |
Definition at line 865 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes().
Referenced by Nektar::LibUtilities::Field< TData, TState >::ToArray(), and Nektar::LibUtilities::Field< TData, TState >::ToVector().
|
inline |
Get BlockAccessors for the field.
Definition at line 603 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_block_accessors, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by TestMath< TData >::abs(), TestMath< TData >::add(), TestIProductWRTPhysNormalDerivTrace< TData >::AddLaplacianOfBasisTerm(), TestIProductWRTPhysTrace< TData >::AddPreFillPhys(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::ApplyNeumannMaps(), Nektar::MultiRegions::PhysTraceExtractOp< TData >::ApplyNormalComponent(), Nektar::MultiRegions::detail::AvgAssmbScatrOpImpl< ExecSpace, TData >::AvgAssmbScatrOpImpl(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::BoundaryOp(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::BoundaryOp(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::BoundaryOp(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::BoundaryOp(), Nektar::detail::HOPressureBndCondOpImpl< ExecSpace, TData >::BuildBoundaryPhys(), TestMath< TData >::Compare(), TestOp< TData, stateIn, stateOut, TExpList >::Compare(), TestLinearSolver< TData >::Compare(), TestPreconOps< TData >::Compare(), Nektar::LibUtilities::Field< TData, TState >::Copy(), Nektar::LibUtilities::Field< TData, TState >::CopyArray(), Nektar::LibUtilities::Field< TData, TState >::CopyVector(), TestMath< TData >::daxpby(), TestMath< TData >::daxpbypcz(), TestMath< TData >::daxpy(), Nektar::Math::ddot(), Nektar::Math::ddot2(), Nektar::LibUtilities::Field< TData, TState >::DeInterleaveToHostPtr(), TestMath< TData >::div(), TestHelmholtz< TData >::ExpectedSolution(), TestIProductWRTPhysTrace< TData >::ExpectedSolution(), TestLaplacian< TData >::ExpectedSolution(), TestLinAdvDiffReaction< TData >::ExpectedSolution(), TestPhysTraceExtract< TData >::ExpectedSolution(), Nektar::LibUtilities::Field< TData, TState >::Field(), Nektar::LibUtilities::Field< TData, TState >::Field(), TestIProductWRTPhysNormalDerivTrace< TData >::FillVolumeG(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::FlattenBlocks(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::FlipParallelDirBndSign(), Nektar::detail::HOPressureBndCondOpImpl< ExecSpace, TData >::GatherBoundaryElements(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::GatherVelocity(), Nektar::LibUtilities::Field< TData, TState >::Initialize(), TestMath< TData >::inner_product(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::InteriorOp(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::InteriorOp(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::InteriorOp(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::InteriorOp(), Nektar::LibUtilities::Field< TData, TState >::InterleaveFromHostPtr(), TestMath< TData >::l1norm(), Nektar::Math::l1norm(), TestMath< TData >::l2norm(), Nektar::Math::l2norm(), TestMath< TData >::linfnorm(), Nektar::Math::linfnorm(), TestMath< TData >::max(), TestParallelReduce< TData >::max(), TestMath< TData >::min(), TestParallelReduce< TData >::min(), TestMath< TData >::mul(), Nektar::MultiRegions::detail::AdvectionDealiasOpImpl< ExecSpace, TData >::MultiplyByAdvVelZ(), TestMath< TData >::neg(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::ParallelOp(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::ParallelOp(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::ParallelOp(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::ParallelOp(), Nektar::Math::reduceMax(), Nektar::Math::reduceMin(), Nektar::Math::reduceSum(), Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage(), Nektar::FieldStorageUnitTests::RunMultiFieldColumns(), TestPhysTraceExtractBndCond< TData >::RunTestCase(), TestIProductWRTPhysNormalDerivTrace< TData >::RunVectorIdentityCase(), Nektar::MultiRegions::AdvectionOp< TData >::SetAdvVel(), Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAdvVel(), Nektar::MultiRegions::LinAdvDiffReactionOp< TData >::SetAdvVel(), Nektar::LibUtilities::Field< TData, TState >::SetInterleaveWidth(), Nektar::LibUtilities::Field< TData, TState >::SetInterleaveWidth(), Nektar::LibUtilities::Field< TData, TState >::SetInterleaveWidth(), TestParallelReduce< TData >::SetTestCase(), TestAdvection< TData >::SetTestCase(), TestAdvectionDealias< TData >::SetTestCase(), TestAvgAssmbScatr< TData >::SetTestCase(), TestBwdTrans< TData >::SetTestCase(), TestCurlCurl< TData >::SetTestCase(), TestDivergence< TData >::SetTestCase(), TestExpression< TData >::SetTestCase(), TestIProductWRTBase< TData >::SetTestCase(), TestIProductWRTDerivBase< TData >::SetTestCase(), TestIProductWRTPhysTrace< TData >::SetTestCase(), TestMass< TData >::SetTestCase(), TestMultiplyByElmtInvMass< TData >::SetTestCase(), TestPhysDeriv< TData >::SetTestCase(), TestPhysTraceExtract< TData >::SetTestCase(), TestPhysTraceExtractBndCond< TData >::SetTestCase(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), TestMaxStdVelocity< TData >::SetTestCase(), TestNormOps< TData >::SetTestCase(), TestPoissonSolve< TData >::SetTestCase(), TestAdvectionWeakDG< TData >::SetTestCase(), TestDiffusionIP< TData >::SetTestCase(), TestAssmbScatr< TData >::SetTestCase(), TestHelmholtz< TData >::SetTestCase(), TestLaplacian< TData >::SetTestCase(), TestLinAdvDiffReaction< TData >::SetTestCase(), TestPreconOps< TData >::SetTestCase(), TestTimeOps< TData >::SetTestCase(), TestPhysGalerkinProject1DScaled< TData >::SetTestCase(), TestPhysInterp1DScaled< TData >::SetTestCase(), TestIProductWRTPhysTrace< TData >::SetTestCaseDivTest(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::SetTraceAdvVel(), Nektar::MultiRegions::HelmholtzOp< TData >::SetVarDiffCoeff(), Nektar::MultiRegions::LaplacianOp< TData >::SetVarDiffCoeff(), Nektar::MultiRegions::LinAdvDiffReactionOp< TData >::SetVarDiffCoeff(), TestMath< TData >::sqrt(), TestMath< TData >::sub(), TestMath< TData >::sum(), TestParallelReduce< TData >::sum(), Nektar::LibUtilities::Field< TData, TState >::ToArray(), Nektar::LibUtilities::Field< TData, TState >::ToVector(), Nektar::detail::HOPressureBndCondOpImpl< ExecSpace, TData >::UpdateFlux(), Nektar::MultiRegions::detail::AssmbScatrOpImpl< ExecSpace, TData, ZERODIR, SIGNCHANGE >::v_Apply(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::v_Apply(), Nektar::MultiRegions::detail::NeuBndCondOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::HOPressureBndCondOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::DiffusionScalarVolFluxOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::AdvDiffCFEVolFluxOpImpl< ExecSpace, EqnOfSParams, TData >::v_Apply(), Nektar::detail::AeroForcesOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::EnergyOpImpl< ExecSpace, TData >::v_Apply(), Nektar::MultiRegions::detail::CurlCurlOpImpl< ExecSpace, TData >::v_ApplyFFT(), Nektar::MultiRegions::PhysLiftProjectOp< TData >::v_ApplyLift(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::v_ApplyUnitTest(), Nektar::detail::HOutflowBndCondOpImpl< ExecSpace, TData >::v_UpdatePressure(), and Nektar::detail::DiffusionCFEVolFluxOpImpl< ExecSpace, EqnOfSParams, TData >::ViscousFlux().
|
inline |
Gets a copy of the components names for a vector field.
Definition at line 676 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_component_names, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by TestAdvectionWeakDG< TData >::RunTestCase().
|
inline |
Definition at line 274 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetInterleaveWidth(), Nektar::LibUtilities::Field< TData, TState >::m_block_accessors, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by Nektar::LibUtilities::Field< TData, TState >::GetInterleaveWidth(), Nektar::MultiRegions::detail::AdvectionDealiasOpImpl< ExecSpace, TData >::MultiplyByAdvVelZ(), TestAvgAssmbScatr< TData >::RunTestCase(), Nektar::MultiRegions::detail::AssmbScatrOpImpl< ExecSpace, TData, ZERODIR, SIGNCHANGE >::SetUpLayoutMaps(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::v_Apply(), and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply().
|
inline |
Gets the name of the field.
Definition at line 642 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, Nektar::LibUtilities::Field< TData, TState >::m_name, and NEKERROR.
Referenced by Nektar::LibUtilities::Field< TData, TState >::Copy(), Nektar::LibUtilities::Field< TData, TState >::CopyArray(), and Nektar::LibUtilities::Field< TData, TState >::CopyVector().
|
inline |
Gets the number of components for a vector field.
Definition at line 659 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_component_names, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by TestMath< TData >::abs(), TestMath< TData >::add(), TestIProductWRTPhysTrace< TData >::AddPreFillPhys(), Nektar::MultiRegions::PhysTraceExtractOp< TData >::ApplyNormalComponent(), Nektar::MultiRegions::IProductWRTPhysNormalDerivTraceOp< TData >::ApplyVector(), Nektar::MultiRegions::detail::AvgAssmbScatrOpImpl< ExecSpace, TData >::AvgAssmbScatrOpImpl(), Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::BoundaryOp(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::BoundaryOp(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::BoundaryOp(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::BoundaryOp(), TestNormOps< TData >::Compare(), TestMath< TData >::Compare(), TestOp< TData, stateIn, stateOut, TExpList >::Compare(), TestLinearSolver< TData >::Compare(), TestPreconOps< TData >::Compare(), Nektar::LibUtilities::Field< TData, TState >::CopyArray(), Nektar::LibUtilities::Field< TData, TState >::CopyVector(), TestMath< TData >::daxpby(), TestMath< TData >::daxpbypcz(), TestMath< TData >::daxpy(), Nektar::LibUtilities::Field< TData, TState >::DeInterleaveToHostPtr(), TestMath< TData >::div(), TestAdvection< TData >::ExpectedSolution(), TestAvgAssmbScatr< TData >::ExpectedSolution(), TestBwdTrans< TData >::ExpectedSolution(), TestCurlCurl< TData >::ExpectedSolution(), TestDivergence< TData >::ExpectedSolution(), TestHelmholtz< TData >::ExpectedSolution(), TestIProductWRTBase< TData >::ExpectedSolution(), TestIProductWRTDerivBase< TData >::ExpectedSolution(), TestIProductWRTPhysTrace< TData >::ExpectedSolution(), TestLaplacian< TData >::ExpectedSolution(), TestLinAdvDiffReaction< TData >::ExpectedSolution(), TestMass< TData >::ExpectedSolution(), TestMultiplyByElmtInvMass< TData >::ExpectedSolution(), TestPhysDeriv< TData >::ExpectedSolution(), TestPhysGalerkinProject1DScaled< TData >::ExpectedSolution(), TestPhysInterp1DScaled< TData >::ExpectedSolution(), TestPhysTraceExtract< TData >::ExpectedSolution(), TestRobin< TData >::ExpectedSolution(), TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestNormOps< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), TestAdvectionWeakDG< TData >::ExpectedSolution(), TestDiffusionIP< TData >::ExpectedSolution(), TestAdvectionDealias< TData >::ExpectedSolution(), TestAssmbScatr< TData >::ExpectedSolution(), TestDirichlet< TData >::ExpectedSolution(), TestNeumann< TData >::ExpectedSolution(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::FlattenBlocks(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::FlipParallelDirBndSign(), TestHelmholtz< TData >::HomogeneousTrans(), TestLaplacian< TData >::HomogeneousTrans(), TestLinAdvDiffReaction< TData >::HomogeneousTrans(), TestMath< TData >::inner_product(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::InteriorOp(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::InteriorOp(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::InteriorOp(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::InteriorOp(), Nektar::LibUtilities::Field< TData, TState >::InterleaveFromHostPtr(), TestMath< TData >::l1norm(), TestMath< TData >::l2norm(), TestMath< TData >::linfnorm(), TestMath< TData >::max(), TestParallelReduce< TData >::max(), TestMath< TData >::min(), TestParallelReduce< TData >::min(), TestMath< TData >::mul(), Nektar::MultiRegions::detail::AdvectionDealiasOpImpl< ExecSpace, TData >::MultiplyByAdvVelZ(), TestMath< TData >::neg(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::ParallelOp(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::ParallelOp(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::ParallelOp(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::ParallelOp(), TestAdvectionDealias< TData >::RunTestCase(), Nektar::MultiRegions::AdvectionOp< TData >::SetAdvVel(), Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAdvVel(), Nektar::MultiRegions::LinAdvDiffReactionOp< TData >::SetAdvVel(), TestParallelReduce< TData >::SetTestCase(), TestAdvection< TData >::SetTestCase(), TestAdvectionDealias< TData >::SetTestCase(), TestAvgAssmbScatr< TData >::SetTestCase(), TestBwdTrans< TData >::SetTestCase(), TestCurlCurl< TData >::SetTestCase(), TestDivergence< TData >::SetTestCase(), TestExpression< TData >::SetTestCase(), TestIProductWRTBase< TData >::SetTestCase(), TestIProductWRTDerivBase< TData >::SetTestCase(), TestIProductWRTPhysTrace< TData >::SetTestCase(), TestMass< TData >::SetTestCase(), TestMultiplyByElmtInvMass< TData >::SetTestCase(), TestPhysDeriv< TData >::SetTestCase(), TestPhysTraceExtract< TData >::SetTestCase(), TestPhysTraceExtractBndCond< TData >::SetTestCase(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), TestMaxStdVelocity< TData >::SetTestCase(), TestNormOps< TData >::SetTestCase(), TestPoissonSolve< TData >::SetTestCase(), TestAdvectionWeakDG< TData >::SetTestCase(), TestDiffusionIP< TData >::SetTestCase(), TestAssmbScatr< TData >::SetTestCase(), TestHelmholtz< TData >::SetTestCase(), TestLaplacian< TData >::SetTestCase(), TestLinAdvDiffReaction< TData >::SetTestCase(), TestTimeOps< TData >::SetTestCase(), TestPhysGalerkinProject1DScaled< TData >::SetTestCase(), TestPhysInterp1DScaled< TData >::SetTestCase(), TestIProductWRTPhysTrace< TData >::SetTestCaseDivTest(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::SetTraceAdvVel(), TestMath< TData >::sqrt(), TestMath< TData >::sub(), TestMath< TData >::sum(), TestParallelReduce< TData >::sum(), Nektar::LibUtilities::Field< TData, TState >::ToArray(), Nektar::LibUtilities::Field< TData, TState >::ToVector(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::UniversalAbsMaxDirBnd(), Nektar::MultiRegions::detail::AssmbScatrOpImpl< ExecSpace, TData, ZERODIR, SIGNCHANGE >::v_Apply(), Nektar::MultiRegions::detail::DirBndCondOpImpl< ExecSpace, TData >::v_Apply(), Nektar::MultiRegions::detail::NeuBndCondOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::EnergyOpImpl< ExecSpace, TData >::v_Apply(), Nektar::MultiRegions::PhysLiftProjectOp< TData >::v_ApplyLift(), and Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::v_ApplyUnitTest().
|
inline |
Gets the number of homogeneous modes.
Definition at line 693 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, Nektar::LibUtilities::Field< TData, TState >::m_num_homo_modes, and NEKERROR.
Referenced by TestIProductWRTPhysTrace< TData >::AddPreFillPhys(), TestMath< TData >::Compare(), TestOp< TData, stateIn, stateOut, TExpList >::Compare(), TestLinearSolver< TData >::Compare(), TestPreconOps< TData >::Compare(), Nektar::LibUtilities::Field< TData, TState >::CopyArray(), Nektar::LibUtilities::Field< TData, TState >::CopyVector(), Nektar::LibUtilities::Field< TData, TState >::DeInterleaveToHostPtr(), TestAdvection< TData >::ExpectedSolution(), TestCurlCurl< TData >::ExpectedSolution(), TestDivergence< TData >::ExpectedSolution(), TestHelmholtz< TData >::ExpectedSolution(), TestIProductWRTDerivBase< TData >::ExpectedSolution(), TestLaplacian< TData >::ExpectedSolution(), TestLinAdvDiffReaction< TData >::ExpectedSolution(), TestMultiplyByElmtInvMass< TData >::ExpectedSolution(), TestPhysDeriv< TData >::ExpectedSolution(), TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), TestAdvectionDealias< TData >::ExpectedSolution(), TestHelmholtz< TData >::HomogeneousTrans(), TestLaplacian< TData >::HomogeneousTrans(), TestLinAdvDiffReaction< TData >::HomogeneousTrans(), Nektar::LibUtilities::Field< TData, TState >::InterleaveFromHostPtr(), TestAdvection< TData >::RunTestCase(), TestLinAdvDiffReaction< TData >::RunTestCase(), TestAdvectionDealias< TData >::RunTestCase(), Nektar::MultiRegions::AdvectionOp< TData >::SetAdvVel(), Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAdvVel(), Nektar::MultiRegions::LinAdvDiffReactionOp< TData >::SetAdvVel(), TestAdvection< TData >::SetTestCase(), TestAdvectionDealias< TData >::SetTestCase(), TestBwdTrans< TData >::SetTestCase(), TestCurlCurl< TData >::SetTestCase(), TestDivergence< TData >::SetTestCase(), TestExpression< TData >::SetTestCase(), TestIProductWRTBase< TData >::SetTestCase(), TestIProductWRTDerivBase< TData >::SetTestCase(), TestIProductWRTPhysTrace< TData >::SetTestCase(), TestMass< TData >::SetTestCase(), TestMultiplyByElmtInvMass< TData >::SetTestCase(), TestPhysDeriv< TData >::SetTestCase(), TestPhysTraceExtract< TData >::SetTestCase(), TestPhysTraceExtractBndCond< TData >::SetTestCase(), TestFwdTrans< TData >::SetTestCase(), TestHelmSolve< TData >::SetTestCase(), TestLinearADRSolve< TData >::SetTestCase(), TestNormOps< TData >::SetTestCase(), TestPoissonSolve< TData >::SetTestCase(), TestAdvectionWeakDG< TData >::SetTestCase(), TestDiffusionIP< TData >::SetTestCase(), TestHelmholtz< TData >::SetTestCase(), TestLaplacian< TData >::SetTestCase(), TestLinAdvDiffReaction< TData >::SetTestCase(), TestPhysGalerkinProject1DScaled< TData >::SetTestCase(), TestPhysInterp1DScaled< TData >::SetTestCase(), TestIProductWRTPhysTrace< TData >::SetTestCaseDivTest(), Nektar::LibUtilities::Field< TData, TState >::ToArray(), Nektar::LibUtilities::Field< TData, TState >::ToVector(), Nektar::detail::AeroForcesOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::EnergyOpImpl< ExecSpace, TData >::v_Apply(), and Nektar::MultiRegions::PhysLiftProjectOp< TData >::v_ApplyLift().
|
inline |
Templated initialize method: set every entry to val, but the padding, which is zero.
| val | - Value to set. |
| streamID | - Stream every block is set on. 0, the default, sets each block on its own stream (block index + 1). |
Definition at line 356 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlineprotected |
Copy data from host memory, laid out component by component and element by element without padding, to the storage in MemSpace. Each block is copied with an interleave width of 1 and its storage is then reshaped back to its own interleave width.
| src | - host memory to copy from |
| compSize | - number of values of one component in src |
Definition at line 923 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), and Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes().
|
inlineexplicit |
Whether the field has been given storage by a custom constructor.
A default-constructed or moved-from field is not instantiated, and every other accessor errors on it - this is the one query that is valid either way, so a caller can test with if (field) before touching.
Definition at line 269 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::m_instantiated.
|
delete |
|
inline |
Move assignment operator.
| rhs |
Definition at line 217 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::eHostPageable, Nektar::NektarSpaces::host_memory_alignment, Nektar::LibUtilities::Field< TData, TState >::m_alignment, Nektar::LibUtilities::Field< TData, TState >::m_block_accessors, Nektar::LibUtilities::Field< TData, TState >::m_component_names, Nektar::LibUtilities::Field< TData, TState >::m_device, Nektar::LibUtilities::Field< TData, TState >::m_host, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, Nektar::LibUtilities::Field< TData, TState >::m_memAllocType, Nektar::LibUtilities::Field< TData, TState >::m_name, Nektar::LibUtilities::Field< TData, TState >::m_num_homo_modes, Nektar::LibUtilities::Field< TData, TState >::m_sharedStorage, Nektar::LibUtilities::Field< TData, TState >::m_sharedStorageOffset, and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
inlineprotected |
Free the contiguous host and device storage this field owns, allocated by AllocateFieldStorage(), and mark the field uninstantiated.
The blocks' memory regions only point into this storage and do not own it; storage a block allocated for itself is freed with the block. Shared storage is not freed here, only released by this field.
Definition at line 716 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::deviceFree(), Nektar::eHostPageable, Nektar::eHostPinned, Nektar::NektarSpaces::host_memory_alignment, Nektar::hostFree(), Nektar::hostFreePinned(), Nektar::LibUtilities::Field< TData, TState >::m_alignment, Nektar::LibUtilities::Field< TData, TState >::m_device, Nektar::LibUtilities::Field< TData, TState >::m_host, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, Nektar::LibUtilities::Field< TData, TState >::m_memAllocType, Nektar::LibUtilities::Field< TData, TState >::m_sharedStorage, Nektar::LibUtilities::Field< TData, TState >::m_sharedStorageOffset, Nektar::nekStreamSynchronize(), and Nektar::LibUtilities::Field< TData, TState >::size().
Referenced by Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::~Field().
|
inline |
Definition at line 333 of file LibUtilities/BasicUtils/Field/Field.hpp.
References ASSERTL1, and Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
|
inline |
Definition at line 322 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), Nektar::MultiRegions::detail::AdvectionDealiasOpImpl< ExecSpace, TData >::MultiplyByAdvVelZ(), TestAvgAssmbScatr< TData >::ReshapeInput(), TestAssmbScatr< TData >::RunTestCase(), TestExpression< TData >::RunTestCase(), TestPhysTraceExtractBndCond< TData >::RunTestCase(), TestMaxStdVelocity< TData >::RunTestCase(), TestNormOps< TData >::RunTestCase(), TestFwdTrans< TData >::RunTestCase(), TestHelmSolve< TData >::RunTestCase(), TestLinearADRSolve< TData >::RunTestCase(), TestPoissonSolve< TData >::RunTestCase(), TestPreconOps< TData >::RunTestCase(), TestAssmbScatr< TData >::RunTestCaseAtWidth(), TestAssmbScatr< TData >::RunTestCaseZeroDir(), TestPhysLiftProject< TData >::RunVariant(), TestFusedElmt< Policy, VISCOUS >::RunVariant(), Nektar::MultiRegions::detail::AvgAssmbScatrOpImpl< ExecSpace, TData >::v_Apply(), and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply().
|
inline |
Definition at line 301 of file LibUtilities/BasicUtils/Field/Field.hpp.
References ASSERTL1, and Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
|
inline |
Definition at line 292 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
Referenced by BOOST_AUTO_TEST_CASE(), TestRobin< TData >::RunTestCase(), TestDirichlet< TData >::RunTestCase(), TestNeumann< TData >::RunTestCase(), TestFwdTrans< TData >::RunTestCase(), TestHelmSolve< TData >::RunTestCase(), TestLinearADRSolve< TData >::RunTestCase(), TestPoissonSolve< TData >::RunTestCase(), Nektar::detail::AdvDiffCFEVolFluxOpImpl< ExecSpace, EqnOfSParams, TData >::v_Apply(), Nektar::detail::ScalarTraceFluxOpImpl< FluxKernel, ExecSpace, TData >::v_Apply(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::v_Apply(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::v_Apply(), Nektar::detail::AdvDiffTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::v_Apply(), Nektar::detail::AdvTraceFluxCFEOpImpl< RiemannKernel, EoSParamType, ExecSpace, TData >::v_ApplyUnitTest(), and Nektar::FilterReynoldsStresses::v_Initialise().
|
inline |
Definition at line 313 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks().
|
inline |
Gets the size of the field.
Definition at line 620 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::m_block_accessors, Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by Nektar::LibUtilities::Field< TData, TState >::AllocateFieldStorage(), Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE(), Nektar::LibUtilities::Field< TData, TState >::Copy(), Nektar::detail::DiffusionScalarIPTraceFluxOpImpl< ExecSpace, TData >::DiffusionScalarIPTraceFluxOpImpl(), Nektar::LibUtilities::Field< TData, TState >::Field(), TestFusedElmt< Policy, VISCOUS >::GradTraceExpected(), Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage(), and Nektar::FieldStorageUnitTests::RunMultiFieldColumns().
|
inline |
Copy the data to a Nektar::Array, component by component and element by element, without padding, whatever the interleave width of each block.
Definition at line 427 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::DeInterleaveToHostPtr(), Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by ApplyRiemannOperator(), TestAdvection< TData >::ExpectedSolution(), TestAvgAssmbScatr< TData >::ExpectedSolution(), TestBwdTrans< TData >::ExpectedSolution(), TestCurlCurl< TData >::ExpectedSolution(), TestDivergence< TData >::ExpectedSolution(), TestExpression< TData >::ExpectedSolution(), TestHelmholtz< TData >::ExpectedSolution(), TestIProductWRTBase< TData >::ExpectedSolution(), TestIProductWRTDerivBase< TData >::ExpectedSolution(), TestLaplacian< TData >::ExpectedSolution(), TestLinAdvDiffReaction< TData >::ExpectedSolution(), TestMass< TData >::ExpectedSolution(), TestMultiplyByElmtInvMass< TData >::ExpectedSolution(), TestPhysDeriv< TData >::ExpectedSolution(), TestPhysGalerkinProject1DScaled< TData >::ExpectedSolution(), TestPhysInterp1DScaled< TData >::ExpectedSolution(), TestFwdTrans< TData >::ExpectedSolution(), TestHelmSolve< TData >::ExpectedSolution(), TestLinearADRSolve< TData >::ExpectedSolution(), TestPoissonSolve< TData >::ExpectedSolution(), TestAdvectionWeakDG< TData >::ExpectedSolution(), TestDiffusionIP< TData >::ExpectedSolution(), TestAdvectionDealias< TData >::ExpectedSolution(), TestAssmbScatr< TData >::ExpectedSolution(), TestPreconOps< TData >::ExpectedSolution(), and TestAdvectionWeakDG< TData >::SetTestCase().
|
inline |
Copy the data to a std::vector, component by component and element by element, without padding, whatever the interleave width of each block.
Definition at line 391 of file LibUtilities/BasicUtils/Field/Field.hpp.
References Nektar::LibUtilities::Field< TData, TState >::DeInterleaveToHostPtr(), Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::LibUtilities::Field< TData, TState >::m_instantiated, and NEKERROR.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inlinestaticprivate |
Zero the padding of block in place, in MemSpace.
Definition at line 973 of file LibUtilities/BasicUtils/Field/Field.hpp.
|
friend |
Definition at line 56 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::Field(), and Nektar::LibUtilities::Field< TData, TState >::Field().
|
friend |
Definition at line 973 of file LibUtilities/BasicUtils/Field/Field.hpp.
|
protected |
Definition at line 962 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
protected |
Definition at line 960 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::Field(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetInterleaveWidth(), Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::size().
|
protected |
|
protected |
Definition at line 959 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
protected |
Definition at line 958 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
protected |
Flag indicating if the current object has been instantiated.
Definition at line 953 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::Copy(), Nektar::LibUtilities::Field< TData, TState >::CopyArray(), Nektar::LibUtilities::Field< TData, TState >::CopyVector(), Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetComponentNames(), Nektar::LibUtilities::Field< TData, TState >::GetInterleaveWidth(), Nektar::LibUtilities::Field< TData, TState >::GetName(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::LibUtilities::Field< TData, TState >::Initialize(), Nektar::LibUtilities::Field< TData, TState >::operator bool(), Nektar::LibUtilities::Field< TData, TState >::operator=(), Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage(), Nektar::LibUtilities::Field< TData, TState >::size(), Nektar::LibUtilities::Field< TData, TState >::ToArray(), and Nektar::LibUtilities::Field< TData, TState >::ToVector().
|
protected |
Definition at line 961 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
protected |
Definition at line 955 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::GetName(), and Nektar::LibUtilities::Field< TData, TState >::operator=().
|
protected |
Definition at line 957 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), and Nektar::LibUtilities::Field< TData, TState >::operator=().
|
protected |
Shared storage the field points into, if any.
Definition at line 964 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::Field(), Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().
|
protected |
Offset of the field in m_sharedStorage.
Definition at line 966 of file LibUtilities/BasicUtils/Field/Field.hpp.
Referenced by Nektar::LibUtilities::Field< TData, TState >::Field(), Nektar::LibUtilities::Field< TData, TState >::operator=(), and Nektar::LibUtilities::Field< TData, TState >::ReleaseStorage().