Skip to content

Commit

Permalink
[GenericConstraintSolver] FIX Generic constraint solver timer (#5045)
Browse files Browse the repository at this point in the history
FIX Generic constraint solver timer
  • Loading branch information
bakpaul authored Oct 8, 2024
1 parent 8e4619c commit ffdc263
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,6 @@ void GenericConstraintSolver::applyMotionCorrection(

void GenericConstraintSolver::computeAndApplyMotionCorrection(const core::ConstraintParams* cParams, MultiVecId res1, MultiVecId res2) const
{
SCOPED_TIMER("Compute And Apply Motion Correction");

static constexpr auto supportedCorrections = {
sofa::core::ConstraintOrder::POS_AND_VEL,
sofa::core::ConstraintOrder::POS,
Expand All @@ -544,11 +542,11 @@ void GenericConstraintSolver::computeAndApplyMotionCorrection(const core::Constr
for (const auto& constraintCorrection : filteredConstraintCorrections())
{
{
SCOPED_TIMER("ComputeCorrection");
SCOPED_TIMER("doComputeCorrection");
constraintCorrection->computeMotionCorrectionFromLambda(cParams, this->getDx(), &current_cp->f);
}

SCOPED_TIMER("ApplyCorrection");
SCOPED_TIMER("doApplyCorrection");
applyMotionCorrection(cParams, res1, res2, constraintCorrection);
}
}
Expand Down

0 comments on commit ffdc263

Please sign in to comment.