-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Constraint.Lagrangian.Solver] Fix assert in GenericConstraintSolver #4389
Conversation
[ci-build][with-all-tests] |
@@ -141,7 +141,7 @@ class SOFA_COMPONENT_CONSTRAINT_LAGRANGIAN_SOLVER_API GenericConstraintSolver : | |||
void computeAndApplyMotionCorrection(const core::ConstraintParams* cParams, GenericConstraintSolver::MultiVecId res1, GenericConstraintSolver::MultiVecId res2) const; | |||
void applyMotionCorrection( | |||
const core::ConstraintParams* cParams, | |||
const core::MultiVecCoordId xId, | |||
const std::unique_ptr<core::MultiVecCoordId>& xId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change of API so breaking 😶🌫️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is private. Do you see a case where changing the signature of a private method can be breaking?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum if somebody inherits it ? (and override it)
.../Lagrangian/Solver/src/sofa/component/constraint/lagrangian/solver/GenericConstraintSolver.h
Outdated
Show resolved
Hide resolved
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.
[ci-build][with-all-tests][force-full-build] |
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.Bug introduced in #4213
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if