sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
871 stars 297 forks source link

[Mass] Replace doUpdateInternal by callback: MeshMatrixMass #3928

Open hugtalbot opened 11 months ago

hugtalbot commented 11 months ago

In the spirit of #3900 and following #3924, this PR applies the change on the MeshMatrixMass.

To be noted:


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

hugtalbot commented 11 months ago

trackInternalData to remove

fredroy commented 11 months ago

[ci-build][with-all-tests]

hugtalbot commented 1 month ago

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.