 }
 
 //--------------------------------------------------------------------------------------------------------------------------------
-__global__ void NS_SSR( uint* indexOfIndex,
-                        uint* activityIdentifierD,
+__global__ void NS_SSR( uint* activityIdentifierD,
                         Real4* sortedDerivVelRho,
                         Real3* sortedDerivTauXxYyZz,
                         Real3* sortedDerivTauXyXzYz,

}

//--------------------------------------------------------------------------------------------------------------------------------
__global__ void calcRho_kernel(uint* indexOfIndex,
                               Real4* sortedPosRad,
                               Real4* sortedRhoPreMu,
                               Real4* sortedRhoPreMu_old,
                               uint* cellStart,


    // Launch a kernel to copy data from sorted arrays to original arrays.
    // This is faster than using thrust::sort_by_key()
    CopySortedToOriginal_D<<<numBlocks, numThreads>>>(
        mR4CAST(sortedDerivVelRho), mR3CAST(sortedDerivTauXxYyZz),
        mR3CAST(sortedDerivTauXyXzYz), mR4CAST(fsiGeneralData->derivVelRhoD_old),
        mR3CAST(fsiGeneralData->derivTauXxYyZzD), mR3CAST(fsiGeneralData->derivTauXyXzYzD),
