Fixed bug in gpu/D3Q19.cu from re-initilizing distribution within solid (both CPU and GPU versions should now be OK)
This commit is contained in:
parent
0fc44c315c
commit
a10006917d
13
gpu/D3Q19.cu
13
gpu/D3Q19.cu
@ -262,6 +262,11 @@ __global__ void dvc_ComputeVelocityD3Q19(char *ID, double *disteven, double *di
|
||||
id = ID[n];
|
||||
if (id==0){
|
||||
vel[n] = 0.0; vel[N+n] = 0.0; vel[2*N+n]=0.0;
|
||||
for(int q=0; q<9; q++){
|
||||
disteven[q*N+n] = -1.0;
|
||||
distodd[q*N+n] = -1.0;
|
||||
}
|
||||
disteven[9*N+n] = -1.0;
|
||||
}
|
||||
else{
|
||||
//........................................................................
|
||||
@ -296,14 +301,6 @@ __global__ void dvc_ComputeVelocityD3Q19(char *ID, double *disteven, double *di
|
||||
vel[2*N+n] = vz;
|
||||
//........................................................................
|
||||
}
|
||||
else{
|
||||
for(int q=0; q<9; q++){
|
||||
disteven[q*N+n] = -1.0;
|
||||
distodd[q*N+n] = -1.0;
|
||||
}
|
||||
disteven[9*N+n] = -1.0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user