Commit 547fb37f authored by James Willis's avatar James Willis
Browse files

Account for separations of zero.

parent 442892a3
......@@ -746,6 +746,9 @@ for (int pid = 0; pid < count; pid++) {
v_hj.v = vec_load(&cell_cache->h[pjd]);
v_hj_inv = vec_reciprocal(v_hj);
/* To stop floating point exceptions for when particle separations are 0. */
v_r2.v = vec_add(v_r2.v, vec_set1(FLT_MIN));
&v_r2, &v_dx, &v_dy, &v_dz, v_vix, v_viy, v_viz,
v_rhoi, v_grad_hi, v_pOrhoi2, v_balsara_i, v_ci,
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