Commit 38d2ea64 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

found sneaky little bug...


Former-commit-id: 1bfe0180f5cd559a823a106d1701fe9d52c03803
parent 44490d9b
......@@ -91,19 +91,12 @@ __attribute__ ((always_inline)) INLINE static void runner_iact_density ( float r
pj->density.wcount_dh -= xj * h_inv * wj_dx * ( 4.0f * M_PI / 3.0f * kernel_igamma3 );
// pj->icount += 1;
pj->density.div_v = pi->mass * dvdr * wj_dx;
pj->density.div_v += pi->mass * dvdr * wj_dx;
for ( k = 0 ; k < 3 ; k++ )
pj->density.curl_v[k] += pi->mass * curlvr[k] * wj_dx;
}
#ifdef HIST
if ( hi > hj )
runner_hist_hit( hi / hj );
else
runner_hist_hit( hj / hi );
#endif
}
/**
......
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