NeoFOAM
WIP Prototype of a modern OpenFOAM core
Loading...
Searching...
No Matches
Functions
NeoFOAM::detail Namespace Reference

Functions

template<typename ValueType >
auto deepCopyVisitor (size_t size, const ValueType *srcPtr, ValueType *dstPtr)
 A helper function to simplify the common pattern of copying between and to executor.
 
template<typename ValueType , typename BinaryOp >
void fieldBinaryOp (Field< ValueType > &a, const Field< std::type_identity_t< ValueType > > &b, BinaryOp op)
 

Function Documentation

◆ deepCopyVisitor()

template<typename ValueType >
auto NeoFOAM::detail::deepCopyVisitor ( size_t  size,
const ValueType *  srcPtr,
ValueType *  dstPtr 
)

A helper function to simplify the common pattern of copying between and to executor.

Parameters
sizeThe number of elements to copy.
srcPtrPointer to the original block of memory.
dstPtrPointer to the target block of memory.
Template Parameters
ValueTypeThe type of the underlying elements.
Returns
A function that takes a source and an destination executor

Definition at line 30 of file field.hpp.

◆ fieldBinaryOp()

template<typename ValueType , typename BinaryOp >
void NeoFOAM::detail::fieldBinaryOp ( Field< ValueType > &  a,
const Field< std::type_identity_t< ValueType > > &  b,
BinaryOp  op 
)

Definition at line 105 of file fieldFreeFunctions.hpp.