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

Update New API and Other Miscellaneous #56

Closed cindytsai closed 2 years ago

cindytsai commented 2 years ago

Update New API and Other Miscellaneous

Change Derived Function and Get Attribute Function Prototype

Originally, derived function and get attribute function prepare one grid data at a time, which is not that efficient. So we make them prepare multiple grids data in one function call. We have a restriction of supporting double data type in derived function only. But now, we have support int, long, float, double data type.

Now, user should get gid from list_gid, and then fill in required data in yt_array array according to gid.

Update Documentation and Example