Performance testing signed distance conversion on CPU

This commit is contained in:
James E McClure
2015-10-06 16:55:18 -04:00
parent a13b8a313d
commit d9996ed1b0

View File

@@ -175,7 +175,7 @@ TwoPhase::~TwoPhase()
void TwoPhase::ColorToSignedDistance(double Beta, DoubleArray &ColorData, DoubleArray &DistData)
{
/* double factor,temp,value;
double factor,temp,value;
factor=0.5/Beta;
for (int n=0; n<Nx*Ny*Nz; n++){
value = ColorData[n];
@@ -199,14 +199,15 @@ void TwoPhase::ColorToSignedDistance(double Beta, DoubleArray &ColorData, Double
}
SSO(DistData,Dm.id,Dm,10);
*/
for (int k=0; k<Nz; k++){
/* for (int k=0; k<Nz; k++){
for (int j=0; j<Ny; j++){
for (int i=0; i<Nx; i++){
DistData(i,j,k) = ColorData(i,j,k);
}
}
}
*/
// for (int n=0; n<Nx*Ny*Nz; n++) DistData[n] = ColorData[n];
}