The source project of this merge request has been removed.
Adding deep copy functionality for AoSoA
This adds a deep_copy
function for moving data between different memory spaces. Some notes:
-
deep_copy
works forCabana::AoSoA
- This only works when the AoSoAs are of the same size.
- When used with
Cabana::AoSoA
both AoSoAs must have the sameCabana::MemberDataTypes
- This also exposed a new
ptr()
interface inCabana::AoSoA
and an equivalent pointers and strides interface inCabana::MemberSlice
which was needed for convenient copying of data in different layouts. This will probably be useful in the future anyway for interfacing with C and Fortran.
Edited by Slattery, Stuart