AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
axom::bump::utilities::internal Namespace Reference

Functions

template<typename ExecSpace >
void copyImpl (conduit::Node &dest, const conduit::Node &src, int destAllocatorID, bool destAllocatorForDevice)
 Copies a Conduit tree in the src node to a new Conduit dest node, making sure to allocate array data in the appropriate memory space for the execution space. More...
 

Function Documentation

◆ copyImpl()

template<typename ExecSpace >
void axom::bump::utilities::internal::copyImpl ( conduit::Node &  dest,
const conduit::Node &  src,
int  destAllocatorID,
bool  destAllocatorForDevice 
)

Copies a Conduit tree in the src node to a new Conduit dest node, making sure to allocate array data in the appropriate memory space for the execution space.

Template Parameters
ExecSpaceThe destination execution space (e.g. axom::SEQ_EXEC).
Parameters
destThe conduit node that will receive the copied data.
srcThe source data to be copied.
destAllocatorIDThe allocator for the destination. It defaults to the allocator for ExecSpace.

References axom::sidre::ConduitMemory::axomAllocIdToConduit(), axom::copy(), axom::getAllocatorIDFromPointer(), axom::INVALID_ALLOCATOR_ID, and axom::isDeviceAllocator().