Commit d605d6d6 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

avoid accumulating interp

parent 840daf0b
Pipeline #9421 failed with stages
in 1 minute
......@@ -1236,7 +1236,9 @@ static int particle_problem_solve(ParticleProblem *p, double alert, double dt, d
particle_problem_gen_contacts(p, alert);
for (size_t i = 0; i < vectorSize(p->contacts); ++i) {
contact_apply(&p->contacts[i], p, dt);
Contact *c = &p->contacts[i];
c->D0 = fmin(c->D0+tol/10,0); // avoid accumulations
contact_apply(c, p, dt);
if (p->use_queue)
return particle_problem_solve_contact_queue(p,dt,tol);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment