Go to the documentation of this file.
20 #ifndef __internalField_hpp__
21 #define __internalField_hpp__
33 template<
class T,
class MemorySpace=
void>
207 template<
class T,
class MemorySpace>
229 #endif // __internalField_hpp__
static const message defaultMessage_
internalField(const word &name, const internalPoints &internal, const T &defVal)
#define fatalExit
Fatal exit.
const auto & deviceViewAll() const
word fieldKey() const
return field key
const pFlagTypeDevice & activePointsMaskDevice() const
typename FieldType::memory_space memory_space
T defaultValue_
value when a new item is added to field
const internalPoints & internalPoints_
const ref to internal points
rangeU32 activeRange() const
bool hearChanges(real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
void fillInternal(const T &val)
INLINE_FUNCTION_H auto deviceView() const
Device view range [0, size)
bool insertSetElement(uint32IndexContainer indices, const T &val)
Field< T, HostSpace > FieldTypeHost
bool rearrange(const anyList &varList)
const pFlagTypeDevice & activePointsMaskDevice() const
typename FieldType::VectorType VectorType
const FieldType & field() const
INLINE_FUNCTION_H auto hostView() const
Return a view accessible on Host in range [0,size)
typename FieldType::execution_space execution_space
const Time & time() const
virtual const word & name() const
Return the name of the stream.
INLINE_FUNCTION_H auto & deviceViewAll()
Device view range [0,capcity)
const T & defaultValue() const
bool insert(const anyList &varList)
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
bool write(iOstream &os, const IOPattern &iop) const
INLINE_FUNCTION_H uint32 capacity() const
int32 lineNumber() const
Const access to the current stream line number.
FieldTypeHost activeValuesHost() const
const pFlagTypeHost & activePointsMaskHost() const
typename VectorType::memory_space memory_space
const pFlagTypeHost & activePointsMaskHost() const
Interface class for any output stream.
INLINE_FUNCTION_H bool insertSetElement(const uint32IndexContainer &indices, const T &val)
VectorSingle< T, MemorySpace > VectorType
typename VectorType::execution_space execution_space
It holds two vectors of indecis on Host and Device.
INLINE_FUNCTION_H uint32 size() const
Size of the vector.
void fillField(rangeU32 span, const T &val)