Skip to content

Commit

Permalink
revert wrong change
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Jul 16, 2024
1 parent 16f9d38 commit 4e95f1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ inline void TetrahedronFEMForceField<DataTypes>::getElementStiffnessMatrix(Real*
template<class DataTypes>
void TetrahedronFEMForceField<DataTypes>::computeMaterialStiffness(Index i, Index&a, Index&b, Index&c, Index&d)
{
const VecReal& localStiffnessFactor = _localStiffnessFactor.getValue();
const VecReal& localStiffnessFactor = d_localStiffnessFactor.getValue();
const Real youngModulusElement = this->getYoungModulusInElement(i);
const Real youngModulus = (localStiffnessFactor.empty() ? 1.0f : localStiffnessFactor[i*localStiffnessFactor.size()/_indexedElements->size()])*youngModulusElement;
const Real poissonRatio = this->d_poissonRatio.getValue();
Expand Down

0 comments on commit 4e95f1d

Please sign in to comment.