                                                         float *d_virial,
                                                         unsigned int n_group_bodies,
                                                         unsigned int n_bodies, 
-                                                        unsigned int local_beg,
                                                         unsigned int nmax,
                                                         gpu_boxsize box,
                                                         float deltaT)
     {
-    unsigned int group_idx = blockIdx.x + local_beg;
+    unsigned int group_idx = blockIdx.x;
         
     __shared__ float4 com, vel, angvel, ex_space, ey_space, ez_space;
     __shared__ int body_imagex, body_imagey, body_imagez;

                                                         float *d_net_virial,
                                                         unsigned int n_group_bodies,   
                                                         unsigned int n_bodies, 
                                                         unsigned int local_beg,
                                                         unsigned int nmax,
                                                         unsigned int block_size,
                                                         gpu_boxsize box,
                                                         float deltaT)
    {
    unsigned int group_idx = blockIdx.x + local_beg;
    
    __shared__ float4 vel, angvel, ex_space, ey_space, ez_space;


                                                           rigid_data.conjqm,
                                                           n_group_bodies, 
                                                           n_bodies, 
                                                           box, 
                                                           deltaT);
    
