Fix bug MPI_Gatherv not support send count > INT_MAX.
Simplify choosing data dimension and data type between data_dim and grid_dimensions, data_dtype and field_dtype. This is now all done inside append_grid.cpp.
If data_ptr = NULL, libyt shouldn't abort when data_dtype or field_dtype is not set and check_data==false. We don't need to wrap this array, hence no need to set data type.
Update 2021.9.7
MPI_Gatherv
not support send count > INT_MAX.data_dim
andgrid_dimensions
,data_dtype
andfield_dtype
. This is now all done insideappend_grid.cpp
.data_ptr = NULL
,libyt
shouldn't abort whendata_dtype
orfield_dtype
is not set andcheck_data==false
. We don't need to wrap this array, hence no need to set data type.libyt/example
to match newestyt
.get_npy_dtype
to matchyt_dtype
to NumPy Enumerate Type. So that user can add new data type more eifficiently.yt_dtype
is valid or not.