|
Nektar++
|
Typedefs | |
| using | PhysField = LibUtilities::Field< double, FieldState::Phys > |
Functions | |
| BOOST_AUTO_TEST_CASE (TestMoveAssignOntoAllocatedRegion) | |
| Move assignment onto a region that already holds storage takes over the right-hand side's storage and leaves the right-hand side empty. | |
| BOOST_AUTO_TEST_CASE (TestSelfMoveAssign) | |
| Move assignment of a region to itself keeps its storage and values; freeing the old storage first must not free the storage being assigned. | |
| BOOST_AUTO_TEST_CASE (TestMoveAssignOntoMovedFromRegion) | |
| A region emptied by being moved from can be assigned again. | |
| static PhysField | MakeField (const size_t nelmt, const unsigned int ndata, const unsigned int ncomp, const double val) |
A field of nelmt elements with ndata points each, every value set to val; Initialize() allocates the field's contiguous storage. | |
| BOOST_AUTO_TEST_CASE (TestFieldMoveAssignOntoAllocatedField) | |
| Move assignment onto a field that already holds contiguous storage takes over the right-hand side's storage and blocks. | |
| BOOST_AUTO_TEST_CASE (TestFieldSelfMoveAssign) | |
| Move assignment of a field to itself keeps its storage and values. | |
| template<FieldState TState> | |
| static std::vector< double > | InitializedValues (LibUtilities::Field< double, TState > &field, const double val) |
The entries Initialize(val) gives field, in storage order: val in its elements and zero in its padding. Within a component, entry i belongs to lane i % width of element group i / (ndata * width). | |
| template<FieldState TState> | |
| static void | RunMultiFieldColumns () |
| The columns of a MultiField lie one after the other in their segment's storage, and a column moved out of the set keeps that storage alive. | |
| BOOST_AUTO_TEST_CASE (TestMultiFieldColumnsCoeff) | |
| BOOST_AUTO_TEST_CASE (TestMultiFieldColumnsPhys) | |
| BOOST_AUTO_TEST_CASE (TestFieldInitializeInterleavedPadding) | |
| Initialize() leaves the padding zero at an interleave width above one, where an element group holds both elements and padding: a partly padded group followed by a wholly padded one, a block without padding, and a partly padded last group. | |
| using Nektar::FieldStorageUnitTests::PhysField = typedef LibUtilities::Field<double, FieldState::Phys> |
Definition at line 49 of file TestFieldStorage.cpp.
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestFieldInitializeInterleavedPadding | ) |
Initialize() leaves the padding zero at an interleave width above one, where an element group holds both elements and padding: a partly padded group followed by a wholly padded one, a block without padding, and a partly padded last group.
Definition at line 253 of file TestFieldStorage.cpp.
References InitializedValues().
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestFieldMoveAssignOntoAllocatedField | ) |
Move assignment onto a field that already holds contiguous storage takes over the right-hand side's storage and blocks.
Definition at line 126 of file TestFieldStorage.cpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), MakeField(), and Nektar::LibUtilities::Field< TData, TState >::size().
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestFieldSelfMoveAssign | ) |
Move assignment of a field to itself keeps its storage and values.
Definition at line 145 of file TestFieldStorage.cpp.
References MakeField().
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestMoveAssignOntoAllocatedRegion | ) |
Move assignment onto a region that already holds storage takes over the right-hand side's storage and leaves the right-hand side empty.
Definition at line 53 of file TestFieldStorage.cpp.
References Nektar::LibUtilities::MemoryRegion< TData >::GetPtr(), Nektar::LibUtilities::MemoryRegion< TData >::Initialize(), and Nektar::LibUtilities::MemoryRegion< TData >::size().
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestMoveAssignOntoMovedFromRegion | ) |
A region emptied by being moved from can be assigned again.
Definition at line 94 of file TestFieldStorage.cpp.
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestMultiFieldColumnsCoeff | ) |
Definition at line 239 of file TestFieldStorage.cpp.
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestMultiFieldColumnsPhys | ) |
Definition at line 244 of file TestFieldStorage.cpp.
| Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE | ( | TestSelfMoveAssign | ) |
Move assignment of a region to itself keeps its storage and values; freeing the old storage first must not free the storage being assigned.
Definition at line 75 of file TestFieldStorage.cpp.
References Nektar::LibUtilities::MemoryRegion< TData >::GetPtr(), Nektar::LibUtilities::MemoryRegion< TData >::Initialize(), and Nektar::LibUtilities::MemoryRegion< TData >::size().
|
static |
The entries Initialize(val) gives field, in storage order: val in its elements and zero in its padding. Within a component, entry i belongs to lane i % width of element group i / (ndata * width).
Definition at line 166 of file TestFieldStorage.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and RunMultiFieldColumns().
|
static |
A field of nelmt elements with ndata points each, every value set to val; Initialize() allocates the field's contiguous storage.
Definition at line 114 of file TestFieldStorage.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
The columns of a MultiField lie one after the other in their segment's storage, and a column moved out of the set keeps that storage alive.
Definition at line 189 of file TestFieldStorage.cpp.
References Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), InitializedValues(), Nektar::LibUtilities::Field< TData, TState >::size(), and X.