Skip to content

Commit

Permalink
Update BaseTearingEngine.inl
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod authored Jun 6, 2024
1 parent 755dab5 commit 90e5eea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Tearing/BaseTearingEngine.inl
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ void BaseTearingEngine<DataTypes>::triangleOverThresholdPrincipalStress()
if (tinfo.maxStress >= threshold)
{
candidate.push_back(i);

if (tinfo.maxStress > maxStress)
{
m_maxStressTriangleIndex = i;
maxStress = tinfo.maxStress;
}
m_maxStressTriangleIndex = i;
}

if (tinfo.maxStress > maxStress)
{
maxStress = tinfo.maxStress;
}
}
}
Expand Down

0 comments on commit 90e5eea

Please sign in to comment.