Skip to content

Commit

Permalink
Fix compilation further to Lifecycle v25.06
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Feb 13, 2025
1 parent c3b9e1d commit dae7114
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SofaMJEDFEM/MJEDTetrahedralForceField.inl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void MJEDTetrahedralForceField<DataTypes>::createTetrahedronRestInformation(unsi



const typename DataTypes::VecCoord& restPosition=this->mstate->read(sofa::core::ConstVecCoordId::restPosition())->getValue();
const typename DataTypes::VecCoord& restPosition=this->mstate->read(sofa::core::vec_id::read_access::restPosition)->getValue();

///describe the indices of the 4 tetrahedron vertices
const Tetrahedron &t= tetrahedronArray[tetrahedronIndex];
Expand Down Expand Up @@ -353,7 +353,7 @@ template <class DataTypes> void MJEDTetrahedralForceField<DataTypes>::init()
// get restPosition
if (_initialPoints.size() == 0)
{
const VecCoord& p = this->mstate->read(core::ConstVecCoordId::restPosition())->getValue();
const VecCoord& p = this->mstate->read(core::vec_id::read_access::restPosition)->getValue();
_initialPoints=p;
}

Expand Down Expand Up @@ -734,7 +734,7 @@ void MJEDTetrahedralForceField<DataTypes>::updateMatrixData()
helper::WriteOnlyAccessor< Data<sofa::type::vector<TetrahedronRestInformation> > > tetrahedronInf = tetrahedronInfo;

// VecDeriv& x = myposition; // to uncomment for test derivatives and comment next line
const VecCoord& x = this->mstate->read(core::ConstVecCoordId::position())->getValue();
const VecCoord& x = this->mstate->read(core::vec_id::read_access::position)->getValue();
EdgeInformation *einfo;

unsigned int m,n;
Expand Down Expand Up @@ -1136,7 +1136,7 @@ void MJEDTetrahedralForceField<DataTypes>::testDerivatives()
{
DataVecCoord d_pos;
VecCoord &pos = *d_pos.beginEdit();
pos = this->mstate->read(sofa::core::ConstVecCoordId::position())->getValue();
pos = this->mstate->read(sofa::core::vec_id::read_access::position)->getValue();

// perturbate original state:
srand( 0 );
Expand Down Expand Up @@ -1259,7 +1259,7 @@ void MJEDTetrahedralForceField<DataTypes>::testDerivatives()
template<class DataTypes>
void MJEDTetrahedralForceField<DataTypes>::saveMesh( const char *filename )
{
VecCoord pos(this->mstate->read(sofa::core::ConstVecCoordId::position())->getValue());
VecCoord pos(this->mstate->read(sofa::core::vec_id::read_access::position)->getValue());
core::topology::BaseMeshTopology::SeqTriangles triangles = _topology->getTriangles();
FILE *file = fopen( filename, "wb" );
if (!file) return;
Expand Down

0 comments on commit dae7114

Please sign in to comment.