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
867 stars 296 forks source link

[Spring] Merging StiffSpringForceField and its parent #4649

Open bakpaul opened 3 weeks ago

bakpaul commented 3 weeks ago

StiffSpringForceField is basically an extension of SpringForcefield adding implicit solving. The only added value comes from the ability to define the springs using added data indices1, indices2 and lengths. This mechanism need to also be merged with the current one available in SpringForceField.

Related to https://github.com/sofa-framework/sofa/issues/248


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

bakpaul commented 3 weeks ago

Let's see this as a starting point of refactoring. This PR does the merge, the code is neither better nor worst than before, it just removes unnecessary duplication.

Still need to replace every iteration of StiffSpringForceField by SpringForceField and fix Cuda extension

bakpaul commented 2 weeks ago

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

bakpaul commented 2 weeks ago

PR is ready for me now. Still need to decide if I should refactor SofaOpenCL or not given the fact that it doesn't compile with the current SOFA's master branch --> to be discussed in the next SOFA-dev meeting.

bakpaul commented 1 week ago

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

hugtalbot commented 5 days ago

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