Skip to content

Commit 63c701b

Browse files
authored
[SolidMechanics] Replace dynamic vector with static std::array (#5744)
[SolidMechanics] Replace dynamic `vector` with static `std::array` for `MatrixSym` in HyperElasticityFEMForceField
1 parent 63d0baa commit 63c701b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sofa/Component/SolidMechanics/FEM/HyperElastic/src/sofa/component/solidmechanics/fem/hyperelastic/TetrahedronHyperelasticityFEMForceField.inl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ void TetrahedronHyperelasticityFEMForceField<DataTypes>::updateTangentMatrix()
411411
Matrix3 M, N;
412412
MatrixSym outputTensor;
413413
N.clear();
414-
type::vector<MatrixSym> inputTensor;
415-
inputTensor.resize(3);
414+
std::array<MatrixSym,3> inputTensor;
416415
// MatrixSym input1,input2,input3,outputTensor;
417416
for (int m = 0; m < 3; m++)
418417
{

0 commit comments

Comments
 (0)