Skip to content

Commit 0e89471

Browse files
authored
Merge pull request sofa-framework#201 from fredroy/remove_warn_constraint
[Constraint] remove deprecated usage of Constraint and replace with LagrangianConstraint
2 parents 35ee277 + 59284d0 commit 0e89471

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/BeamAdapter/component/constraint/AdaptiveBeamLengthConstraint.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <sofa/helper/map.h>
2626

2727
#include <sofa/core/behavior/MechanicalState.h>
28-
#include <sofa/core/behavior/Constraint.h>
28+
#include <sofa/core/behavior/LagrangianConstraint.h>
2929
#include <sofa/defaulttype/SolidTypes.h>
3030
#include <sofa/type/Vec.h>
3131

@@ -34,7 +34,7 @@
3434
namespace beamadapter
3535
{
3636
using sofa::core::behavior::ConstraintResolution ;
37-
using sofa::core::behavior::Constraint ;
37+
using sofa::core::behavior::LagrangianConstraint;
3838
using sofa::core::behavior::MechanicalState ;
3939
using sofa::core::ConstraintParams ;
4040
using sofa::core::objectmodel::Data ;
@@ -79,11 +79,11 @@ class IntervalDefinition
7979
* https://www.sofa-framework.org/community/doc/programming-with-sofa/components-api/components-and-datas/
8080
*/
8181
template<class DataTypes>
82-
class AdaptiveBeamLengthConstraint : public Constraint<DataTypes>
82+
class AdaptiveBeamLengthConstraint : public LagrangianConstraint<DataTypes>
8383
{
8484
public:
8585
SOFA_CLASS(SOFA_TEMPLATE(AdaptiveBeamLengthConstraint,DataTypes),
86-
SOFA_TEMPLATE(Constraint,DataTypes));
86+
SOFA_TEMPLATE(LagrangianConstraint,DataTypes));
8787

8888
typedef typename DataTypes::VecCoord VecCoord;
8989
typedef typename DataTypes::VecDeriv VecDeriv;
@@ -99,7 +99,7 @@ class AdaptiveBeamLengthConstraint : public Constraint<DataTypes>
9999
typedef typename std::map<Real, double>::iterator MapIterator;
100100

101101
typedef MechanicalState<DataTypes> TypedMechanicalState;
102-
typedef Constraint<DataTypes> Inherit;
102+
typedef LagrangianConstraint<DataTypes> Inherit;
103103
typedef Data<VecCoord> DataVecCoord;
104104
typedef Data<VecDeriv> DataVecDeriv;
105105
typedef Data<MatrixDeriv> DataMatrixDeriv;

0 commit comments

Comments
 (0)