Load Particle Data to yt through Wrapping the Existing Array
If the particle data is store in contiguous memory block, we can directly wrap them and pass in to yt. So that we don't have to copy it again.
This new api should co-existing with the original one ( user input get_attr which returns the particle attributes array ).
Notes
In order to merge enzo, I introduced the API for wrapping particle data array in libyt at (#79). That PR doesn't support particle array just yet, still fixing some bugs.
Load Particle Data to
yt
through Wrapping the Existing ArrayIf the particle data is store in contiguous memory block, we can directly wrap them and pass in to
yt
. So that we don't have to copy it again. This new api should co-existing with the original one ( user inputget_attr
which returns the particle attributes array ).Notes
In order to merge enzo, I introduced the API for wrapping particle data array in
libyt
at (#79). That PR doesn't support particle array just yet, still fixing some bugs.