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:
@ -24,6 +24,7 @@ Licence:
|
||||
#include "cGAbsoluteLinearCF.hpp"
|
||||
#include "cGRelativeLinearCF.hpp"
|
||||
#include "cGNonLinearCF.hpp"
|
||||
#include "cGNonLinearCF2.hpp"
|
||||
|
||||
#include "grainRolling.hpp"
|
||||
|
||||
@ -42,6 +43,9 @@ using nonLimitedCGRelativeLinearGrainRolling = grainRolling<cGRelativeLinear<fal
|
||||
using limitedCGNonLinearGrainRolling = grainRolling<cGNonLinear<true>>;
|
||||
using nonLimitedCGNonLinearGrainRolling = grainRolling<cGNonLinear<false>>;
|
||||
|
||||
using limitedCGNonLinear2GrainRolling = grainRolling<cGNonLinear2<true>>;
|
||||
using nonLimitedCGNonLinear2GrainRolling = grainRolling<cGNonLinear2<false>>;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -96,10 +96,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);
|
||||
|
||||
|
@ -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