Skip to content
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

[Component] Factorize interpolation parameters computation between stiffness and mass computation #48

Merged
merged 12 commits into from Aug 16, 2022

Conversation

epernod
Copy link
Collaborator

@epernod epernod commented Aug 9, 2022

Values:

Real _A, _L, _Iy, _Iz, _Asy, _Asz, _J; ///< Interpolation & geometrical parameters
Real _rho;

were computed per beam twice, in method computeMass and computeStiffness which are both called in AddForce step.
now compute the values and store them inside BeamLocalMatrices structure (one per beam)

Some small optimization as well in the code to use noInit and factorize some small computation

@epernod epernod marked this pull request as draft August 9, 2022 14:26
@hugtalbot hugtalbot added the pr: status to review To notify reviewers to review this pull-request label Aug 9, 2022
# Conflicts:
#	src/BeamAdapter/component/forcefield/AdaptiveBeamForceFieldAndMass.h
#	src/BeamAdapter/component/forcefield/AdaptiveBeamForceFieldAndMass.inl
@epernod epernod marked this pull request as ready for review August 12, 2022 08:40
@fredroy fredroy added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Aug 16, 2022
@fredroy fredroy merged commit 36fe256 into sofa-framework:master Aug 16, 2022
@epernod epernod deleted the ABeamFF_optim branch October 19, 2022 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: clean pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants