Nektar++
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
TestFieldStorage.cpp File Reference
#include <LibUtilities/BasicUtils/Field/Field.hpp>
#include <LibUtilities/BasicUtils/Field/MemoryRegion.hpp>
#include <LibUtilities/BasicUtils/Field/MultiField.hpp>
#include <boost/test/unit_test.hpp>

Go to the source code of this file.

Namespaces

namespace  Nektar
 
namespace  Nektar::FieldStorageUnitTests
 

Typedefs

using Nektar::FieldStorageUnitTests::PhysField = LibUtilities::Field< double, FieldState::Phys >
 

Functions

 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.
 
 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.
 
 Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE (TestMoveAssignOntoMovedFromRegion)
 A region emptied by being moved from can be assigned again.
 
static PhysField Nektar::FieldStorageUnitTests::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.
 
 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.
 
 Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE (TestFieldSelfMoveAssign)
 Move assignment of a field to itself keeps its storage and values.
 
template<FieldState TState>
static std::vector< double > Nektar::FieldStorageUnitTests::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 Nektar::FieldStorageUnitTests::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.
 
 Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE (TestMultiFieldColumnsCoeff)
 
 Nektar::FieldStorageUnitTests::BOOST_AUTO_TEST_CASE (TestMultiFieldColumnsPhys)
 
 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.