Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Sep 3, 2024
1 parent 88316a4 commit aab47ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Cosserat/constraint/CosseratActuatorConstraint.inl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void CosseratActuatorConstraint<DataTypes>::getConstraintViolation(const Constra


for (unsigned i=0;i<d_indices.getValue().size();i++) {
resV->set(m_constraintIndex.getValue(), dfree);
resV->set(d_constraintIndex.getValue(), dfree);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/Cosserat/constraint/CosseratNeedleSlidingConstraint.inl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace sofa::component::constraintset
SOFA_UNUSED(cParams);
MatrixDeriv &matrix = *cMatrix.beginEdit();
VecCoord positions = x.getValue();
m_constraintIndex.setValue(cIndex);
d_constraintIndex.setValue(cIndex);

type::Vec<3, bool> use = d_useDirections.getValue();

Expand All @@ -131,7 +131,7 @@ namespace sofa::component::constraintset
}
}
cMatrix.endEdit();
m_nbLines = cIndex - m_constraintIndex.getValue();
m_nbLines = cIndex - d_constraintIndex.getValue();

}

Expand Down

0 comments on commit aab47ca

Please sign in to comment.