Wrap particle array and put it under libyt.particle_data[gid][ptype][attr]. libyt first look for data under this dictionary, if it cannot find the data, it then use get_par_attr to generate the data.
Test
[x] example
[x] GAMER
[x] Enzo
CosmologySimulation/amr_cosmology
Related Issue
28
Bugs
yt_getGridInfo_FieldData/ParticleData
The API is a look-up method. If it failed to find the data, it returns YT_FAIL and should dereference python object before returning. I forgot to do this previously.
Enhancement
Makefile
Set rpath when compiling libyt and example, so that we don't have to add library search path explicitly.
Support Wrapping Particle Array
Wrap particle array and put it under
libyt.particle_data[gid][ptype][attr]
.libyt
first look for data under this dictionary, if it cannot find the data, it then useget_par_attr
to generate the data.Test
CosmologySimulation/amr_cosmology
Related Issue
28
Bugs
yt_getGridInfo_FieldData/ParticleData
The API is a look-up method. If it failed to find the data, it returns
YT_FAIL
and should dereference python object before returning. I forgot to do this previously.Enhancement
Makefile
Set rpath when compiling
libyt
andexample
, so that we don't have to add library search path explicitly.