 }
 //--------------------------------------------------------------------------------------------------------------------------------
 //updates the rigid body particles
-__global__ void UpdateRigidParticlesPosition(
+__global__ void UpdateRigidMarkersPosition(
 		real3 * posRadD,
 		real4 * velMasD,
 		const real3 * rigidSPH_MeshPos_LRF_D,


		const thrust::device_vector<int> & flexIdentifierD,
		const thrust::device_vector<real_> & parametricDist,
		const thrust::host_vector<int2> & referenceArray,

		thrust::device_vector<real4> & derivVelRhoD,

		const thrust::device_vector<real3> & rigidSPH_MeshPos_LRF_D,
		const thrust::device_vector<real3> & jD1,
		const thrust::device_vector<real3> & jD2,
		const thrust::device_vector<real3> & jInvD1,
		const thrust::device_vector<real3> & jInvD2,
		SimParams paramsH,
		int startRigidMarkers,
		int numRigid_SphMarkers,
		float fracSimulation,
		real_ dT) {
	int numFlexBodies = ANCF_ReferenceArrayNodesOnBeams.size();


	LF_totalTorque3.clear();
	//################################################### update rigid body things
	UpdateRigidMarkersPosition<<<nBlocks_numRigid_SphMarkers, nThreads_SphMarkers>>>(R3CAST(posRadD), R4CAST(velMasD), R3CAST(rigidSPH_MeshPos_LRF_D), I1CAST(rigidIdentifierD), R3CAST(posRigidD), R4CAST(velMassRigidD), R3CAST(omegaLRF_D), R3CAST(AD1), R3CAST(AD2), R3CAST(AD3));
	cudaThreadSynchronize();
	CUT_CHECK_ERROR("Kernel execution failed: UpdateKernelRigid");
}
