Skip to content

Adding deep copy functionality for AoSoA

Slattery, Stuart requested to merge (removed):deep_copy into master

This adds a deep_copy function for moving data between different memory spaces. Some notes:

  • deep_copy works for Cabana::AoSoA
  • This only works when the AoSoAs are of the same size.
  • When used with Cabana::AoSoA both AoSoAs must have the same Cabana::MemberDataTypes
  • This also exposed a new ptr() interface in Cabana::AoSoA and an equivalent pointers and strides interface in Cabana::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

Merge request reports

Loading