Skip to content

Commit

Permalink
apply new mechanism registration to AugmentedLagrangianConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Dec 18, 2024
1 parent 9ef38af commit adcd311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ namespace sofa::component::constraint::lagrangian::model
using namespace sofa::defaulttype;
using namespace sofa::helper;

int AugmentedLagrangianConstraintClass = core::RegisterObject("AugmentedLagrangianConstraint")
.add< AugmentedLagrangianConstraint<Vec3Types> >()

;

void registerAugmentedLagrangianConstraint(sofa::core::ObjectFactory* factory)
{
factory->registerObjects(core::ObjectRegistrationData("AugmentedLagrangianConstraint")
.add< AugmentedLagrangianConstraint<Vec3Types> >());
}

template class SOFA_COMPONENT_CONSTRAINT_LAGRANGIAN_MODEL_API BaseContactLagrangianConstraint<Vec3Types,AugmentedLagrangianContactParameters>;
template class SOFA_COMPONENT_CONSTRAINT_LAGRANGIAN_MODEL_API AugmentedLagrangianConstraint<Vec3Types>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
namespace sofa::component::constraint::lagrangian::model
{

extern void registerAugmentedLagrangianConstraint(sofa::core::ObjectFactory* factory);
extern void registerBilateralLagrangianConstraint(sofa::core::ObjectFactory* factory);
extern void registerFixedLagrangianConstraint(sofa::core::ObjectFactory* factory);
extern void registerSlidingLagrangianConstraint(sofa::core::ObjectFactory* factory);
Expand Down Expand Up @@ -57,6 +58,7 @@ const char* getModuleVersion()

void registerObjects(sofa::core::ObjectFactory* factory)
{
registerAugmentedLagrangianConstraint(factory);
registerBilateralLagrangianConstraint(factory);
registerFixedLagrangianConstraint(factory);
registerSlidingLagrangianConstraint(factory);
Expand Down

0 comments on commit adcd311

Please sign in to comment.