File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
applications/plugins/SofaCUDA/sofa/gpu/cuda Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ void ParticlesRepulsionForceField<gpu::cuda::CudaVec3fTypes>::addDForce(const co
9090 Real kFactor = (Real)sofa::core::mechanicalparams::kFactorIncludingRayleighDamping (mparams,this ->rayleighStiffness .getValue ());
9191 Real bFactor = (Real)sofa::core::mechanicalparams::bFactor (mparams);
9292
93- const VecCoord& x = this ->mstate ->read (core::ConstVecCoordId:: position () )->getValue ();
93+ const VecCoord& x = this ->mstate ->read (sofa:: core::vec_id::read_access:: position)->getValue ();
9494 GPURepulsion3f repulsion;
9595 repulsion.d = distance.getValue ();
9696 repulsion.d2 = repulsion.d *repulsion.d ;
@@ -142,7 +142,7 @@ void ParticlesRepulsionForceField<gpu::cuda::CudaVec3dTypes>::addDForce(const co
142142 Real kFactor = (Real)sofa::core::mechanicalparams::kFactorIncludingRayleighDamping (mparams,this ->rayleighStiffness .getValue ());
143143 Real bFactor = (Real)sofa::core::mechanicalparams::bFactor (mparams);
144144
145- const VecCoord& x = this ->mstate ->read (core::ConstVecCoordId:: position () )->getValue ();
145+ const VecCoord& x = this ->mstate ->read (sofa:: core::vec_id::read_access:: position)->getValue ();
146146 GPURepulsion3d repulsion;
147147 repulsion.d = distance.getValue ();
148148 repulsion.d2 = repulsion.d *repulsion.d ;
You can’t perform that action at this time.
0 commit comments