Skip to content

[Core] Introduce resetVec to deprecate resetForce and resetAcc - #6361

Merged
fredroy merged 8 commits into
sofa-framework:masterfrom
alxbilger:resetvec
Oct 29, 2026
Merged

fredroy merged 8 commits into
sofa-framework:masterfrom
alxbilger:resetvec

Conversation

@alxbilger

@alxbilger alxbilger commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

In the goal of generalizing a MechanicalState.

[with-all-tests]


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

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@alxbilger alxbilger added pr: status to review To notify reviewers to review this pull-request pr: refactoring Refactor code labels Oct 7, 2026
Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
@hugtalbot hugtalbot added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Oct 29, 2026
@fredroy
fredroy merged commit 97a7fcd into sofa-framework:master Oct 29, 2026
13 of 14 checks passed
bakpaul pushed a commit to bakpaul/sofa that referenced this pull request Oct 29, 2026
…ofa-framework#6361)

* introduce method `resetVec`

* implement resetVec in MechanicalObject

* test

* deprecate resetForce and resetAcc

* fix warning unused

* use resetVec instead of resetForce

* adapt SofaCUDA

* Apply suggestion from @hugtalbot

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>

---------

Co-authored-by: Hugo <hugo.talbot@sofa-framework.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: refactoring Refactor code pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants