Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public :
DataVecDeriv& df ,
const DataVecDeriv& dx ) override;

double getPotentialEnergy(const MechanicalParams* mparams,
SReal getPotentialEnergy(const MechanicalParams* mparams,
const DataVecCoord& x) const override;

void addKToMatrix(sofa::linearalgebra::BaseMatrix* matrix,
double kFact,
SReal kFact,
unsigned int& offset) override;
////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void PREquivalentStiffnessForceField<DataTypes>::addDForce(const MechanicalParam
}

template<typename DataTypes>
double PREquivalentStiffnessForceField<DataTypes>::getPotentialEnergy(const MechanicalParams* mparams,
SReal PREquivalentStiffnessForceField<DataTypes>::getPotentialEnergy(const MechanicalParams* mparams,
const DataVecCoord& x) const
{
SOFA_UNUSED(mparams);
Expand All @@ -333,7 +333,7 @@ double PREquivalentStiffnessForceField<DataTypes>::getPotentialEnergy(const Mech

template<typename DataTypes>
void PREquivalentStiffnessForceField<DataTypes>::addKToMatrix(BaseMatrix* matrix,
double kFact,
SReal kFact,
unsigned int& offset)
{
if(d_componentState.getValue() != ComponentState::Valid)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class PartialRigidificationForceField : public MixedInteractionForceField<TDataT
const DataVecDeriv1& dx1,
const DataVecDeriv2& dx2) override;

double getPotentialEnergy(const MechanicalParams* mparams,
SReal getPotentialEnergy(const MechanicalParams* mparams,
const DataVecCoord1& x1, const DataVecCoord2& x2) const override;
////////////////////////////////////////////////////////////////////////////////////

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ void PartialRigidificationForceField<DataTypes1, DataTypes2>::addDForce(const Me
// Even though it does nothing, this method has to be implemented
// since it's a pure virtual in parent class
template<class DataTypes1, class DataTypes2>
double PartialRigidificationForceField<DataTypes1, DataTypes2>::getPotentialEnergy(const MechanicalParams* mparams,
SReal PartialRigidificationForceField<DataTypes1, DataTypes2>::getPotentialEnergy(const MechanicalParams* mparams,
const DataVecCoord1& x1,
const DataVecCoord2& x2) const
{
Expand Down
2 changes: 1 addition & 1 deletion src/SoftRobots/component/forcefield/PipeForceField.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public :
void addKToMatrix(const MechanicalParams* mparams,
const MultiMatrixAccessor* matrix) override;

double getPotentialEnergy(const MechanicalParams* mparams,
SReal getPotentialEnergy(const MechanicalParams* mparams,
const DataVecCoord& x) const override;
////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion src/SoftRobots/component/forcefield/PipeForceField.inl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void PipeForceField<DataTypes>::addDForce(const MechanicalParams* mparams,
}

template<typename DataTypes>
double PipeForceField<DataTypes>::getPotentialEnergy(const MechanicalParams* mparams,
SReal PipeForceField<DataTypes>::getPotentialEnergy(const MechanicalParams* mparams,
const DataVecCoord& x) const
{
SOFA_UNUSED(mparams);
Expand Down
Loading