.. _sec_ref_cg_iRIC_Read_Sol_ParticleGroup_Pos2d: cg_iRIC_Read_Sol_ParticleGroup_Pos2d ==================================== Reads the positions of particles. Format (FORTRAN) ----------------- .. code-block:: fortran call cg_iRIC_Read_Sol_ParticleGroup_Pos2d(fid, step, groupname, x_arr, y_arr, ier) Format (C/C++) ----------------- .. code-block:: c ier = cg_iRIC_Read_Sol_ParticleGroup_Pos2d(fid, step, groupname, x_arr, y_arr) Format (Python) ----------------- .. code-block:: python x_arr, y_arr = cg_iRIC_Read_Sol_ParticleGroup_Pos2d(fid, step, groupname) Arguments and returned value ------------------------------- fid ~~~ .. list-table:: Description of fid :header-rows: 1 * - Item - Value * - Name - fid * - Input/Output - Input * - Description - File ID * - Data type (FORTRAN) - integer * - Data type (C/C++) - int * - Data type (Python) - int step ~~~~ .. list-table:: Description of step :header-rows: 1 * - Item - Value * - Name - step * - Input/Output - Input * - Description - The result step number * - Data type (FORTRAN) - integer * - Data type (C/C++) - int * - Data type (Python) - int groupname ~~~~~~~~~ .. list-table:: Description of groupname :header-rows: 1 * - Item - Value * - Name - groupname * - Input/Output - Input * - Description - The name of the particle group * - Data type (FORTRAN) - character(*) * - Data type (C/C++) - const char* * - Data type (Python) - str x_arr ~~~~~ .. list-table:: Description of x_arr :header-rows: 1 * - Item - Value * - Name - x_arr * - Input/Output - Output * - Description - The array of coordinate X values * - Data type (FORTRAN) - double precision, dimension(:) * - Data type (C/C++) - double* * - Data type (Python) - numpy.array y_arr ~~~~~ .. list-table:: Description of y_arr :header-rows: 1 * - Item - Value * - Name - y_arr * - Input/Output - Output * - Description - The array of coordinate Y values * - Data type (FORTRAN) - double precision, dimension(:) * - Data type (C/C++) - double* * - Data type (Python) - numpy.array ier ~~~ .. list-table:: Description of ier :header-rows: 1 * - Item - Value * - Name - ier * - Input/Output - Output * - Description - Error code. 0 means success, other values mean error. * - Data type (FORTRAN) - integer * - Data type (C/C++) - int * - Data type (Python) - (Not defined)