Since some particle operations are not paralleled in yt, this PR has only successfully run with MPI rank = 1. So need further test on MPI rank > 1, once it's paralleled.
For now, if the grid id g.id cannot be found on one MPI rank, then the whole process will terminate.
We've fixed this issue in #31 , but there is still some minor issue #32 .
Change yt_grid struct, in order to store particle counts in different types.
Miscellaneous Update
Hide yt_hierarchy from user. This structure is only meant to be temporary used in libyt.
Set unit default as empty string "".
Initialize and free array field_list, particle_list, grids_local in the condition of num_fields > 0 and num_species > 0. In order to avoid new <type> [0].
Main Goal
Support Particle Operation in
yt
yt
ask to.yt
, this PR has only successfully run with MPI rank = 1. So need further test on MPI rank > 1, once it's paralleled.g.id
cannot be found on one MPI rank, then the whole process will terminate.yt_grid
struct, in order to store particle counts in different types.Miscellaneous Update
yt_hierarchy
from user. This structure is only meant to be temporary used inlibyt
.""
.field_list
,particle_list
,grids_local
in the condition ofnum_fields > 0
andnum_species > 0
. In order to avoidnew <type> [0]
.