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

[forcefield] updates AdaptiveBeamForceFieldAndMass with the new matrix assembly API #115

Merged
merged 6 commits into from
Nov 1, 2023
Prev Previous commit
Update src/BeamAdapter/component/forcefield/AdaptiveBeamForceFieldAnd…
…Mass.inl

Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
  • Loading branch information
EulalieCoevoet and alxbilger authored Oct 20, 2023
commit e9ad58f0672ca06d61eb8fd5c4b711bd847a0093
Original file line number Diff line number Diff line change
@@ -368,7 +368,8 @@ void AdaptiveBeamForceFieldAndMass<DataTypes>::addMToMatrix(const MechanicalPara
template<class DataTypes>
void AdaptiveBeamForceFieldAndMass<DataTypes>::buildMassMatrix(sofa::core::behavior::MassMatrixAccumulator* matrices)
{
unsigned int numBeams = l_interpolation->getNumBeams();
const unsigned int numBeams = l_interpolation->getNumBeams();


for (unsigned int b=0; b<numBeams; b++)
{
Loading