Skip to content

Commit

Permalink
[LinearSystem] Remove development artifact (#4620)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored Mar 29, 2024
1 parent 53f37a8 commit 1df6701
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,6 @@ class MatrixLinearSystem : public TypedMatrixLinearSystem<TMatrix, TVector>
> > m_localMappedMatrices;



/**
* Asks all the matrix accumulators to accumulate the contribution of a specific type of contribution
*/
template<Contribution c>
void contribute(const core::MechanicalParams* mparams);

template<Contribution c>
void contribute(const core::MechanicalParams* mparams, IndependentContributors& contributors);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,36 +72,6 @@ MatrixLinearSystem<TMatrix, TVector>::MatrixLinearSystem()
}, {&m_needClearLocalMatrices});
}

template <class TMatrix, class TVector>
template <Contribution c>
void MatrixLinearSystem<TMatrix, TVector>::contribute(const core::MechanicalParams* mparams)
{
sofa::helper::ScopedAdvancedTimer buildTimer("build" + std::string(core::matrixaccumulator::GetContributionName<c>()));

for (auto* contributor : getContributors<c>())
{
if (Inherit1::template getContributionFactor<c>(mparams, contributor) != 0._sreal)
{
if constexpr (c == Contribution::STIFFNESS)
{
contributor->buildStiffnessMatrix(&m_stiffness[contributor]);
}
else if constexpr (c == Contribution::MASS)
{
contributor->buildMassMatrix(m_mass[contributor]);
}
else if constexpr (c == Contribution::DAMPING)
{
contributor->buildDampingMatrix(&m_damping[contributor]);
}
else if constexpr (c == Contribution::GEOMETRIC_STIFFNESS)
{
contributor->buildGeometricStiffnessMatrix(&m_geometricStiffness[contributor]);
}
}
}
}

template <class TMatrix, class TVector>
template <Contribution c>
void MatrixLinearSystem<TMatrix, TVector>::contribute(
Expand Down

0 comments on commit 1df6701

Please sign in to comment.