Skip to content

Commit

Permalink
fix Data duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Jul 11, 2024
1 parent da03573 commit f3e68b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ class TetrahedronFEMForceField : public BaseLinearElasticityFEMForceField<DataTy

Data<std::string> d_method; ///< "small", "large" (by QR), "polar" or "svd" displacements

Data<Real> d_poissonRatio; ///< FEM Poisson Ratio in Hooke's law [0,0.5[
Data<VecReal > d_youngModulus; ///< FEM Young's Modulus in Hooke's law
Data<VecReal> d_localStiffnessFactor; ///< Allow specification of different stiffness per element. If there are N element and M values are specified, the youngModulus factor for element i would be localStiffnessFactor[i*M/N]
Data<bool> d_updateStiffnessMatrix;
Data<bool> d_assembling;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,7 @@ void TetrahedronFEMForceField<DataTypes>::init()
this->d_componentState.setValue(ComponentState::Invalid) ;

const VecReal& youngModulus = this->d_youngModulus.getValue();
assert(!youngModulus.empty());
minYoung=youngModulus[0];
maxYoung=youngModulus[0];
for (unsigned i=0; i<youngModulus.size(); i++)
Expand Down

0 comments on commit f3e68b4

Please sign in to comment.