[Mass] Replace doUpdateInternal by callback: MeshMatrixMass
Needs https://github.com/sofa-framework/sofa/pull/4917 to make all tests pass successfully.
In the spirit of #3900 and following #3924, this PR applies the change on the MeshMatrixMass.
To be noted:
- the
componentStatemust be added to trigger the callback (done inaddMDx(),addMToMatrix,accFromFandbuildMassMatrix) - this PR does not solve the problem of circular dependency referred in #2173
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).
trackInternalData to remove
[ci-build][with-all-tests]
Similar feature is merged for the ConstantForceField in #3924. It adds separate callbacks for each data but a hacky flag allows to avoid data cross-dependency by de-activating all inputs non-set at the initialization. It could be done here as well but a more robust implementation (Data, callback) could be found.
Add a unit test to make sure that no data cross-dependency is triggered. Manual test as well.
[ci-build][with-all-tests]
[ci-build][with-all-tests][force-full-build]
[ci-build][with-all-tests][force-full-build]
[ci-build][with-all-tests][force-full-build]
[ci-build][with-all-tests][force-full-build]
I do not get why the regression on the scene EulerExplicitSolver.scn .. ever worked. It seems to diverge on both my current SOFA master and the SOFA release v24.06
@hugtalbot I found this: https://github.com/sofa-framework/sofa/issues/2888
[ci-build][with-all-tests][force-full-build]
@hugtalbot will you generate a new regression for the EulerExplicitSolver ?
[ci-build][with-all-tests][force-full-build]