NeoFOAM
WIP Prototype of a modern OpenFOAM core
|
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) |
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.
size | The number of elements to copy. |
srcPtr | Pointer to the original block of memory. |
dstPtr | Pointer to the target block of memory. |
ValueType | The type of the underlying elements. |
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.