Skip to content

Transition to buildStiffnessMatrix over addKToMatrix in ForceField - #643

Merged
bakpaul merged 1 commit into
sofa-framework:masterfrom
alxbilger:buildstiffnessmatrix
Nov 19, 2026
Merged

bakpaul merged 1 commit into
sofa-framework:masterfrom
alxbilger:buildstiffnessmatrix

Conversation

@alxbilger

Copy link
Copy Markdown
Contributor

Based on

Normally, buildStiffnessMatrix is the method called by SOFA. addKToMatrix is called only through the compatibility layer. This PR implements buildStiffnessMatrix without relying on the compatibility layer.

However, it checks if addKToMatrix is implemented in Python. If yes, it runs the compatibility layer with a deprecation message.

@alxbilger
alxbilger force-pushed the buildstiffnessmatrix branch from 557effe to 6cb84ce Compare November 19, 2026 09:30
@bakpaul
bakpaul merged commit 13b0fc1 into sofa-framework:master Nov 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants