Changes

Summary

  1. [Constraint.Lagrangian.Solver] Fix assert in GenericConstraintSolver (#4389) (details)
Commit ff2753f380f80015cced6eb0abf1628cfb3782f6 by noreply
[Constraint.Lagrangian.Solver] Fix assert in GenericConstraintSolver (#4389)

* [Constraint.Lagrangian.Solver] Fix assert in GenericConstraintSolver

The construction of xId caused an assert when `cParams->constOrder() == sofa::core::ConstraintOrder::VEL`. It happens only in debug, and it had no consequence because it was not used.

* Simpler solution

* Remove unnecessary include

---------

Co-authored-by: Paul Baksic <30337881+bakpaul@users.noreply.github.com>
The file was modifiedSofa/Component/Constraint/Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/GenericConstraintSolver.h (diff)
The file was modifiedSofa/Component/Constraint/Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/GenericConstraintSolver.cpp (diff)