[x] Simplify choosing data dimension and data type between data_dim and grid_dimensions, data_dtype and field_dtype.
[x] 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
libyt
MPI_Gatherv
not support send count > INT_MAX.data_dim
andgrid_dimensions
,data_dtype
andfield_dtype
.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.append_grid.cpp
.