Skip to content

Commit a2b5f5c

Browse files
committed
updated comments
1 parent 598843f commit a2b5f5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contact/time_integrator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def step_forward(x, e, v, m, l2, k, contact_area, is_DBC, h, tol):
2323
print('Iteration', iter, ':')
2424
print('residual =', LA.norm(p, inf) / h)
2525

26-
# line search
27-
alpha = BarrierEnergy.init_step_size(x, p) # filter line search to avoid interpenetration and tunneling
26+
# filter line search
27+
alpha = BarrierEnergy.init_step_size(x, p) # avoid interpenetration and tunneling
2828
while IP_val(x + alpha * p, e, x_tilde, m, l2, k, contact_area, h) > E_last:
2929
alpha /= 2
3030
print('step size =', alpha)

0 commit comments

Comments
 (0)