Skip to content

Commit d4a49d8

Browse files
committed
change error message
1 parent 9ecb661 commit d4a49d8

File tree

1 file changed

+1
-6
lines changed
  • src/contactDetection/ContactDetectionMPR

1 file changed

+1
-6
lines changed

src/contactDetection/ContactDetectionMPR/mpr.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,7 @@ function tetrahedronEncloseOrigin(r0::SupportPoint, r1::SupportPoint,
149149
break
150150
end
151151
if success != true
152-
if niter_max < 100
153-
@warn("MPR (phase 2): Max. number of iterations (= $niter_max) is reached. niter_max increased locally by 10 and phase 2 is rerun. Look at $(Modia3D.fullName(shapeA)) and $(Modia3D.fullName(shapeB)).")
154-
tetrahedronEncloseOrigin(r0, r1org, r2org, r3org, niter_max + 10, shapeA, shapeB, scale)
155-
else
156-
error("MPR (phase 2): Max. number of iterations (= $niter_max) is reached and $niter_max > 100, look at $(Modia3D.fullName(shapeA)) and $(Modia3D.fullName(shapeB)).")
157-
end
152+
error("MPR (phase 2): Max. number of iterations (mprIterMax = $niter_max) is reached. Please, increase mprIterMax. Look at shapes: $(Modia3D.fullName(shapeA)) and $(Modia3D.fullName(shapeB)).")
158153
end
159154
return (r1, r2, r3)
160155
end

0 commit comments

Comments
 (0)