Commit 735f43a0 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

initialize r0,r1

parent fc809d47
......@@ -273,8 +273,7 @@ static int contact_init_particle_particle(Contact *c, const ParticleProblem *p,
}
c->type = PARTICLE_PARTICLE;
double basis[DIMENSION][DIMENSION];
double r0[DIMENSION], r1[DIMENSION];
double D = contact_update_particle_particle(c, p, x0, x1, basis, r0, r1);
double D = contact_update_particle_particle(c, p, x0, x1, basis, c->r0, c->r1);
c->D0 = fmin(D, 0);
return D < alert;
}
......
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