yt-project / libyt

In-situ analysis with yt
https://libyt.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Load Particle Data to `yt` through Wrapping the Existing Array #28

Closed cindytsai closed 1 year ago

cindytsai commented 2 years ago

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.