correctoins for running on cuda

This commit is contained in:
Hamidreza Norouzi
2025-01-26 12:19:25 +03:30
parent 6e6cabbefa
commit 2168456584
7 changed files with 18 additions and 14 deletions

View File

@ -94,10 +94,10 @@ public:
realx3 w_hat = wi-wj;
real w_hat_mag = length(w_hat);
if( !equal(w_hat_mag,zero) )
if( !equal(w_hat_mag,static_cast<real>(0.0)) )
w_hat /= w_hat_mag;
else
w_hat = zero;
w_hat = static_cast<real>(0.0);
auto Reff = (Ri*Rj)/(Ri+Rj);