Skip to content

Class TempLat::ConfigView

template <typename T, size_t _NDim>

ClassList > TempLat > ConfigView

A view on the field which, when interacted with, assures every time again that things are in configuration space, and possibly the ghost cells are updated when needed. The final Field class defaults to config space, which means it inherits from this class.More...

  • #include <fieldviewconfig.h>

Inherits the following classes: TempLat::AbstractField

Inherited by the following classes: TempLat::Field, TempLat::Field

Public Static Attributes

Type Name
constexpr size_t NDim = \_NDim

Public Static Attributes inherited from TempLat::AbstractField

See TempLat::AbstractField

Type Name
constexpr size_t NDim = \_NDim

Public Functions

Type Name
ConfigView (std::string name, device::memory::host_ptr< MemoryToolBox< NDim > > toolBox, LatticeParameters< T > pLatPar)
void assign (R && g)
void confirmSpace (const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const
DEVICE_INLINE_FUNCTION auto eval (const IDX &... idx) const
auto getFullNDHostView () const
const auto & getLayout () const
auto getLocalNDHostView () const
auto getRawHostView () const
DEVICE_INLINE_FUNCTION T & getSet (IDX &&... idx) const
auto getView () const
void onBeforeAssignment (R && g)
void operator+= (R && g)
void operator= (R && g)
void operator= (const ConfigView< T, NDim > & other)
void setDisableFFTBlocking ()
Disable the blocking of going from configuration space to fourier space. Used by PowerSpectrumBuilder, which uses newly allocate memory which is filled in configuration space, and then FFT'ed to fourier space.
std::string toString () const
std::string to_string () const
void updateGhosts () const

Public Functions inherited from TempLat::AbstractField

See TempLat::AbstractField

Type Name
AbstractField (std::string name, device::memory::host_ptr< MemoryToolBox< NDim > > toolBox, LatticeParameters< T > pLatPar)
bool areGhostsStale () const
device::Idx confirmGhostsUpToDate () const
void confirmSpace (const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const
auto getDx () const
auto getKIR () const
auto getLatParams () const
device::memory::host_ptr< MemoryManager< T, NDim > > getMemoryManager () const
device::memory::host_ptr< MemoryToolBox< NDim > > getToolBox () const
bool isConfigSpace () const
Check the current state.
bool isFourierSpace () const
Check the current state.
void setGhostsAreStale () const

Protected Attributes inherited from TempLat::AbstractField

See TempLat::AbstractField

Type Name
const LatticeParameters< T > latPar
device::memory::host_ptr< MemoryManager< T, NDim > > mManager
device::memory::host_ptr< MemoryToolBox< NDim > > mToolBox

Detailed Description

Unit test: ctest -R test-fieldviewconfig

Public Static Attributes Documentation

variable NDim

constexpr size_t TempLat::ConfigView< T, _NDim >::NDim;

Public Functions Documentation

function ConfigView

inline TempLat::ConfigView::ConfigView (
    std::string name,
    device::memory::host_ptr < MemoryToolBox < NDim > > toolBox,
    LatticeParameters < T > pLatPar
) 

function assign

template<typename R>
inline void TempLat::ConfigView::assign (
    R && g
) 

function confirmSpace

inline void TempLat::ConfigView::confirmSpace (
    const LayoutStruct < NDim > & newLayout,
    const SpaceStateType & spaceType
) const

function eval

template<typename... IDX>
inline DEVICE_INLINE_FUNCTION auto TempLat::ConfigView::eval (
    const IDX &... idx
) const

function getFullNDHostView

inline auto TempLat::ConfigView::getFullNDHostView () const

function getLayout

inline const auto & TempLat::ConfigView::getLayout () const

function getLocalNDHostView

inline auto TempLat::ConfigView::getLocalNDHostView () const

function getRawHostView

inline auto TempLat::ConfigView::getRawHostView () const

function getSet

template<typename... IDX>
inline DEVICE_INLINE_FUNCTION T & TempLat::ConfigView::getSet (
    IDX &&... idx
) const

function getView

inline auto TempLat::ConfigView::getView () const

function onBeforeAssignment

template<typename R>
inline void TempLat::ConfigView::onBeforeAssignment (
    R && g
) 

function operator+=

template<typename R>
inline void TempLat::ConfigView::operator+= (
    R && g
) 

function operator=

template<typename R>
inline void TempLat::ConfigView::operator= (
    R && g
) 

function operator=

inline void TempLat::ConfigView::operator= (
    const ConfigView < T, NDim > & other
) 

function setDisableFFTBlocking

Disable the blocking of going from configuration space to fourier space. Used by PowerSpectrumBuilder, which uses newly allocate memory which is filled in configuration space, and then FFT'ed to fourier space.

inline void TempLat::ConfigView::setDisableFFTBlocking () 


function toString

inline std::string TempLat::ConfigView::toString () const

function to_string

inline std::string TempLat::ConfigView::to_string () const

function updateGhosts

inline void TempLat::ConfigView::updateGhosts () const


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/field/views/fieldviewconfig.h