Skip to content

[Core,IntegrationScheme] Replace legacy propagation by mapping-graph based propagation - #6334

Merged
hugtalbot merged 4 commits into
sofa-framework:masterfrom
alxbilger:replacepropagation
Nov 6, 2026
Merged

hugtalbot merged 4 commits into
sofa-framework:masterfrom
alxbilger:replacepropagation

Conversation

@alxbilger

@alxbilger alxbilger commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Following the deprecation of the legacy propagation functions (#6312), they are replaced by a mapping-graph aware function, found in DifferentialOperations.

[with-all-tests]

Based on : #6375


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: enhancement About a possible enhancement pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Sep 28, 2026
@alxbilger
alxbilger force-pushed the replacepropagation branch 4 times, most recently from 3da17d7 to 4c1d6da Compare October 8, 2026 09:42
@alxbilger

Copy link
Copy Markdown
Contributor Author

The reason a scene crashes with this PR: #6375

@hugtalbot hugtalbot added pr: based on previous PR PR based on a previous PR, therefore to be merged ONLY subsequently and removed pr: based on previous PR PR based on a previous PR, therefore to be merged ONLY subsequently labels Oct 15, 2026

@fredroy fredroy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it (🤖) also detected that with the StaticEquilibrium:
With free motion, the Newton loop now updates freePosition but keeps computing forces at position. The residual never reflects the step, so the line search and convergence check are wrong. The fix is to call m_mop->mparams.setX(m_xResult) once in doSetupIntegrationStep, as the Velocity and Acceleration schemes already do.

and not detected in the tests because there is not scene using StaticEquilibrium with Freemotion.

(so maybe it does not make sense to use Freemotion with StaticEquilibrium 🤔 ?)

alxbilger and others added 2 commits October 29, 2026 16:21
Co-authored-by: Themis Skamagkis <70031729+th-skam@users.noreply.github.com>
@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 Nov 6, 2026
@hugtalbot
hugtalbot merged commit b1bd375 into sofa-framework:master Nov 6, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: enhancement About a possible enhancement pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants