Skip to content

Commit 7241d39

Browse files
committed
[algorithm] Place shared operations at the top
1 parent 38608bb commit 7241d39

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/CollisionAlgorithm/algorithm/InsertionAlgorithm.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ class InsertionAlgorithm : public BaseAlgorithm
128128

129129
if (m_couplingPts.empty())
130130
{
131-
// Puncture sequence
132-
auto createTipProximity =
133-
Operations::CreateCenterProximity::Operation::get(l_tipGeom->getTypeInfo());
131+
// Operations on surface geometry
134132
auto findClosestProxOnSurf =
135133
Operations::FindClosestProximity::Operation::get(l_surfGeom);
136134
auto projectOnSurf = Operations::Project::Operation::get(l_surfGeom);
135+
136+
// Puncture sequence
137+
auto createTipProximity =
138+
Operations::CreateCenterProximity::Operation::get(l_tipGeom->getTypeInfo());
137139
auto projectOnTip = Operations::Project::Operation::get(l_tipGeom);
138140

139141
const SReal punctureForceThreshold = d_punctureForceThreshold.getValue();

0 commit comments

Comments
 (0)