-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spring] Merging StiffSpringForceField and its parent #4649
base: master
Are you sure you want to change the base?
[Spring] Merging StiffSpringForceField and its parent #4649
Conversation
…tion of the force computation because it is more complete
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 |
…n and make it the common one
[ci-build][with-all-tests] |
PR is ready for me now. |
[ci-build][with-all-tests] |
[ci-build][with-all-tests] |
...onent/SolidMechanics/Spring/src/sofa/component/solidmechanics/spring/StiffSpringForceField.h
Outdated
Show resolved
Hide resolved
Sofa/GUI/Component/src/sofa/gui/component/performer/AttachBodyPerformer.inl
Outdated
Show resolved
Hide resolved
...tions/plugins/SofaCUDA/src/SofaCUDA/component/solidmechanics/spring/CudaSpringForceField.cpp
Show resolved
Hide resolved
…echanics/spring/StiffSpringForceField.h Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
Remove commented code
…ngff_and_springff
de5c7a2
to
beff7ab
Compare
[ci-build][with-all-tests] |
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 #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