mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
correctoins for running on cuda
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user