Skip to content

Commit 1a67763

Browse files
authored
Fix compilation further to lifecycle v25.06 (SofaDefrost#154)
1 parent 5b83e73 commit 1a67763

14 files changed

Lines changed: 36 additions & 37 deletions

src/ModelOrderReduction/component/contact/MORFrictionContact.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ class MORFrictionContact : public FrictionContact<TCollisionModel1, TCollisionMo
7171

7272
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::parent;
7373

74-
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::mu; ///< friction coefficient (0 for frictionless contacts)
75-
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::tol; ///< tolerance for the constraints resolution (0 for default tolerance)
74+
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::d_mu; ///< friction coefficient (0 for frictionless contacts)
75+
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::d_tol; ///< tolerance for the constraints resolution (0 for default tolerance)
7676
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::contacts;
7777
using FrictionContact<TCollisionModel1, TCollisionModel2, ResponseDataTypes>::mappedContacts;
7878

src/ModelOrderReduction/component/contact/MORUnilateralInteractionConstraint.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ void MORUnilateralInteractionConstraint<DataTypes>::buildConstraintMatrix(const
180180
template<class DataTypes>
181181
void MORUnilateralInteractionConstraint<DataTypes>::getPositionViolation(linearalgebra::BaseVector *v)
182182
{
183-
const VecCoord &PfreeVec = this->getMState2()->read(core::ConstVecCoordId::freePosition())->getValue();
184-
const VecCoord &QfreeVec = this->getMState1()->read(core::ConstVecCoordId::freePosition())->getValue();
183+
const VecCoord &PfreeVec = this->getMState2()->read(core::vec_id::read_access::freePosition)->getValue();
184+
const VecCoord &QfreeVec = this->getMState1()->read(core::vec_id::read_access::freePosition)->getValue();
185185
Real dfree = (Real)0.0;
186186
Real dfree_t = (Real)0.0;
187187
Real dfree_s = (Real)0.0;

src/ModelOrderReduction/component/contact/MORpointModel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class MORPointCollisionModel : public PointCollisionModel<TDataTypes>
5454
using PointCollisionModel<TDataTypes>::mstate;
5555
using PointCollisionModel<TDataTypes>::size;
5656
using PointCollisionModel<TDataTypes>::normals;
57-
using PointCollisionModel<TDataTypes>::m_displayFreePosition;
57+
using PointCollisionModel<TDataTypes>::d_displayFreePosition;
5858
void init() override;
5959

6060
// -- CollisionModel interface

src/ModelOrderReduction/component/forcefield/HyperReducedHexahedronFEMForceField.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class HyperReducedHexahedronFEMForceField : public virtual HexahedronFEMForceFie
6969

7070
typedef type::Mat<24, 24, Real> ElementStiffness;
7171
typedef type::vector<ElementStiffness> VecElementStiffness;
72-
using HexahedronFEMForceField<DataTypes>::_elementStiffnesses; ///< Stiffness matrices per element (K_i)
72+
using HexahedronFEMForceField<DataTypes>::d_elementStiffnesses; ///< Stiffness matrices per element (K_i)
7373

7474
typedef type::Mat<3, 3, Real> Mat33;
7575

@@ -82,7 +82,7 @@ class HyperReducedHexahedronFEMForceField : public virtual HexahedronFEMForceFie
8282

8383

8484
using HexahedronFEMForceField<DataTypes>::_sparseGrid;
85-
using HexahedronFEMForceField<DataTypes>::_initialPoints; ///< the intial positions of the points
85+
using HexahedronFEMForceField<DataTypes>::d_initialPoints; ///< the intial positions of the points
8686

8787

8888
using HexahedronFEMForceField<DataTypes>::_coef; ///< coef of each vertices to compute the strain stress matrix
@@ -96,14 +96,14 @@ class HyperReducedHexahedronFEMForceField : public virtual HexahedronFEMForceFie
9696
// Inherited ForceField Variables
9797

9898
using HexahedronFEMForceField<DataTypes>::method;
99-
using HexahedronFEMForceField<DataTypes>::f_method; ///< the computation method of the displacements
100-
using HexahedronFEMForceField<DataTypes>::f_poissonRatio;
101-
using HexahedronFEMForceField<DataTypes>::f_youngModulus;
102-
using HexahedronFEMForceField<DataTypes>::f_updateStiffnessMatrix;
103-
using HexahedronFEMForceField<DataTypes>::_gatherPt; ///< use in GPU version
104-
using HexahedronFEMForceField<DataTypes>::_gatherBsize; ///< use in GPU version
105-
using HexahedronFEMForceField<DataTypes>::f_drawing; ///< draw the forcefield if true
106-
using HexahedronFEMForceField<DataTypes>::f_drawPercentageOffset; ///< size of the hexa
99+
using HexahedronFEMForceField<DataTypes>::d_method; ///< the computation method of the displacements
100+
using HexahedronFEMForceField<DataTypes>::d_poissonRatio;
101+
using HexahedronFEMForceField<DataTypes>::d_youngModulus;
102+
using HexahedronFEMForceField<DataTypes>::d_updateStiffnessMatrix;
103+
using HexahedronFEMForceField<DataTypes>::d_gatherPt; ///< use in GPU version
104+
using HexahedronFEMForceField<DataTypes>::d_gatherBsize; ///< use in GPU version
105+
using HexahedronFEMForceField<DataTypes>::d_drawing; ///< draw the forcefield if true
106+
using HexahedronFEMForceField<DataTypes>::d_drawPercentageOffset; ///< size of the hexa
107107
using HexahedronFEMForceField<DataTypes>::needUpdateTopology;
108108

109109
// Reduced Order Variables
@@ -127,8 +127,7 @@ class HyperReducedHexahedronFEMForceField : public virtual HexahedronFEMForceFie
127127

128128

129129
protected:
130-
HyperReducedHexahedronFEMForceField()
131-
: HexahedronFEMForceField<DataTypes>()
130+
HyperReducedHexahedronFEMForceField() : HexahedronFEMForceField<DataTypes>()
132131
{
133132
}
134133
public:

src/ModelOrderReduction/component/forcefield/HyperReducedHexahedronFEMForceField.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ void HyperReducedHexahedronFEMForceField<DataTypes>::draw(const core::visual::Vi
456456
if (!this->d_drawing.getValue()) return;
457457

458458

459-
const VecCoord& x = this->mstate->read(core::ConstVecCoordId::position())->getValue();
459+
const VecCoord& x = this->mstate->read(core::vec_id::read_access::position)->getValue();
460460

461461
if (vparams->displayFlags().getShowWireFrame())
462462
vparams->drawTool()->setPolygonMode(0,true);

src/ModelOrderReduction/component/forcefield/HyperReducedRestShapeSpringsForceField.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ bool HyperReducedRestShapeSpringsForceField<DataTypes>::checkOutOfBoundsIndices(
224224
template<class DataTypes>
225225
const typename HyperReducedRestShapeSpringsForceField<DataTypes>::DataVecCoord* HyperReducedRestShapeSpringsForceField<DataTypes>::getExtPosition() const
226226
{
227-
return (useRestMState ? l_restMState->read(VecCoordId::position()) : this->mstate->read(VecCoordId::restPosition()));
227+
return (useRestMState ? l_restMState->read(sofa::core::vec_id::read_access::position) : this->mstate->read(sofa::core::vec_id::read_access::restPosition));
228228
}
229229

230230
template<class DataTypes>
@@ -409,7 +409,7 @@ void HyperReducedRestShapeSpringsForceField<DataTypes>::draw(const VisualParams
409409
vparams->drawTool()->setLightingEnabled(false);
410410

411411
ReadAccessor< DataVecCoord > p0 = *this->getExtPosition();
412-
ReadAccessor< DataVecCoord > p = this->mstate->read(VecCoordId::position());
412+
ReadAccessor< DataVecCoord > p = this->mstate->read(sofa::core::vec_id::read_access::position);
413413

414414
const VecIndex& indices = m_indices;
415415
const VecIndex& ext_indices = (useRestMState ? m_ext_indices : m_indices);

src/ModelOrderReduction/component/forcefield/HyperReducedTetrahedralCorotationalFEMForceField.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class HyperReducedTetrahedralCorotationalFEMForceField : public virtual Tetrahed
6969
/// @}
7070

7171
/// container that stotes all requires information for each tetrahedron
72-
using TetrahedralCorotationalFEMForceField<DataTypes>::tetrahedronInfo;
72+
using TetrahedralCorotationalFEMForceField<DataTypes>::d_tetrahedronInfo;
7373

7474
/// @name Full system matrix assembly support
7575
/// @{

src/ModelOrderReduction/component/forcefield/HyperReducedTetrahedralCorotationalFEMForceField.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void HyperReducedTetrahedralCorotationalFEMForceField<DataTypes>::accumulateForc
175175
{
176176

177177
const core::topology::BaseMeshTopology::Tetrahedron t=_topology->getTetrahedron(elementIndex);
178-
const VecCoord& X0=this->mstate->read(core::ConstVecCoordId::restPosition())->getValue();
178+
const VecCoord& X0=this->mstate->read(core::vec_id::read_access::restPosition)->getValue();
179179

180180

181181
Index a = t[0];
@@ -622,7 +622,7 @@ void HyperReducedTetrahedralCorotationalFEMForceField<DataTypes>::draw(const cor
622622

623623
vparams->drawTool()->saveLastState();
624624

625-
const VecCoord& x = this->mstate->read(core::ConstVecCoordId::position())->getValue();
625+
const VecCoord& x = this->mstate->read(core::vec_id::read_access::position)->getValue();
626626

627627
if (vparams->displayFlags().getShowWireFrame())
628628
vparams->drawTool()->setPolygonMode(0,true);

src/ModelOrderReduction/component/forcefield/HyperReducedTetrahedronFEMForceField.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class HyperReducedTetrahedronFEMForceField : public virtual TetrahedronFEMForceF
112112

113113
using TetrahedronFEMForceField<DataTypes>::_plasticStrains; ///< one plastic strain per element
114114

115-
using TetrahedronFEMForceField<DataTypes>::_showVonMisesStressPerElement;
115+
using TetrahedronFEMForceField<DataTypes>::d_showVonMisesStressPerElement;
116116
/// @name Full system matrix assembly support
117117
/// @{
118118

src/ModelOrderReduction/component/forcefield/HyperReducedTetrahedronFEMForceField.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ void HyperReducedTetrahedronFEMForceField<DataTypes>::draw(const core::visual::V
467467

468468
vparams->drawTool()->disableLighting();
469469

470-
const VecCoord& x = this->mstate->read(core::ConstVecCoordId::position())->getValue();
470+
const VecCoord& x = this->mstate->read(core::vec_id::read_access::position)->getValue();
471471
const VecReal& youngModulus = this->d_youngModulus.getValue();
472472

473473
bool heterogeneous = false;
@@ -605,7 +605,7 @@ void HyperReducedTetrahedronFEMForceField<DataTypes>::draw(const core::visual::V
605605
////////////// DRAW ROTATIONS //////////////
606606
if (vparams->displayFlags().getShowNormals())
607607
{
608-
const VecCoord& x = this->mstate->read(core::ConstVecCoordId::position())->getValue();
608+
const VecCoord& x = this->mstate->read(core::vec_id::read_access::position)->getValue();
609609
std::vector< type::Vec3 > points[3];
610610
for(unsigned ii = 0; ii< x.size() ; ii++)
611611
{

0 commit comments

Comments
 (0)