refactor Minkowski

This commit is contained in:
James E McClure
2018-07-30 13:58:17 -04:00
parent 71f71799fd
commit f48cd05fa2
2 changed files with 6 additions and 8 deletions

View File

@@ -149,11 +149,9 @@ void Minkowski::ComputeLocal()
// Compute volume averages
for (int p=0;p<8;p++){
n = i+cube[p][0] + (j+cube[p][1])*Nx + (k+cube[p][2])*Nx*Ny;
if ( Dm->id[n] != 0 ){
// 1-D index for this cube corner
if ( SDn(i+cube[p][0],j+cube[p][1],k+cube[p][2]) < 0 ){
vol_n += 0.125;
}
// 1-D index for this cube corner
if ( SDn(i+cube[p][0],j+cube[p][1],k+cube[p][2]) < 0 ){
vol_n += 0.125;
}
}