/* Update the forces on each particle */ void CalculateForces( PARTICLE *p,int np, PARTICLEPHYS phys, PARTICLESPRING *s,int ns) { int i,p1,p2; XYZ down = {0.0,0.0,-1.0}; XYZ zero = {0.0,0.0,0.0}; XYZ f; double len,dx,dy,dz; for (i=0;i