Skip to content

Commit

Permalink
cleanup comments
Browse files Browse the repository at this point in the history
  • Loading branch information
VannesteFelix committed Oct 11, 2023
1 parent 8049d51 commit 155afdb
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
******************************************************************************/
#pragma once

#include "sofa/core/behavior/BaseLocalForceFieldMatrix.h"
#include <ModelOrderReduction/component/forcefield/HyperReducedTriangleFEMForceField.h>
#include <sofa/core/behavior/BaseLocalForceFieldMatrix.h>
#include <sofa/core/visual/VisualParams.h>
#include <sofa/core/MechanicalParams.h>
#include <sofa/core/ObjectFactory.h>
Expand Down Expand Up @@ -374,33 +374,6 @@ void HyperReducedTriangleFEMForceField<DataTypes>::draw(const core::visual::Visu
#endif /* SOFA_NO_OPENGL */
}


/*template<class DataTypes>
void HyperReducedTriangleFEMForceField<DataTypes>::addKToMatrix(sofa::linearalgebra::BaseMatrix *mat, SReal k, unsigned int &offset)
{
if (d_performECSW.getValue())
{
int iECSW;
for(unsigned i = 0 ; i<m_RIDsize ;++i)
{
iECSW = reducedIntegrationDomain(i);
StiffnessMatrix JKJt,RJKJtRt;
this->computeElementStiffnessMatrix(JKJt, RJKJtRt, _materialsStiffnesses[iECSW], _strainDisplacements[iECSW], _rotations[iECSW]);
this->addToMatrix(mat,offset,(*_indexedElements)[iECSW],weights(iECSW)*RJKJtRt,-k);
}
}
else
{
for(unsigned i=0; i< _indexedElements->size() ; i++)
{
StiffnessMatrix JKJt,RJKJtRt;
this->computeElementStiffnessMatrix(JKJt, RJKJtRt, _materialsStiffnesses[i], _strainDisplacements[i], _rotations[i]);
this->addToMatrix(mat,offset,(*_indexedElements)[i],RJKJtRt,-k);
}
}
}*/

template <class DataTypes>
void HyperReducedTriangleFEMForceField<DataTypes>::buildStiffnessMatrix(core::behavior::StiffnessMatrix* matrix)
{
Expand Down

0 comments on commit 155afdb

Please sign in to comment.