diff --git a/cpu/D3Q7.cpp b/cpu/D3Q7.cpp index 2f9d8217..6bf92af6 100644 --- a/cpu/D3Q7.cpp +++ b/cpu/D3Q7.cpp @@ -150,8 +150,8 @@ extern "C" void ComputeDensityD3Q7(char *ID, double *disteven, double *distodd, int N = Nx*Ny*Nz; for (n=0; n 0 ){ + id = ID[n]; + if (id > 0 ){ // Read the distributions f0 = disteven[n]; f2 = disteven[N+n]; @@ -162,6 +162,6 @@ extern "C" void ComputeDensityD3Q7(char *ID, double *disteven, double *distodd, f5 = distodd[2*N+n]; // Compute the density Den[n] = f0+f1+f2+f3+f4+f5+f6; - //} + } } }