Skip to content

Commit 62a4587

Browse files
committed
check parameters only if component state is not invalid
1 parent a67bc9c commit 62a4587

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sofa/Component/SolidMechanics/FEM/Elastic/src/sofa/component/solidmechanics/fem/elastic/BaseLinearElasticityFEMForceField.inl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@ void BaseLinearElasticityFEMForceField<DataTypes>::init()
8888
core::behavior::ForceField<DataTypes>::init();
8989
this->validateTopology();
9090

91-
checkYoungModulus();
92-
checkPoissonRatio();
91+
if (!this->isComponentStateInvalid())
92+
{
93+
checkYoungModulus();
94+
checkPoissonRatio();
95+
}
9396
}
9497

9598
template <class DataTypes>

0 commit comments

Comments
 (0)