Updated cpu/D3Q19.cpp criteria for unpacking negative distributions causes problems
This commit is contained in:
parent
000d1b721c
commit
5a83c9608d
@ -49,7 +49,8 @@ extern "C" void UnpackDist(int q, int Cqx, int Cqy, int Cqz, int *list, int sta
|
|||||||
// }
|
// }
|
||||||
// list[idx] = nn;
|
// list[idx] = nn;
|
||||||
// Don't unpack distributions into the solid phase
|
// Don't unpack distributions into the solid phase
|
||||||
if (dist[q*N+nn] > 0.0) dist[q*N+nn] = recvbuf[start+idx];
|
// if (dist[q*N+nn] > 0.0) dist[q*N+nn] = recvbuf[start+idx];
|
||||||
|
dist[q*N+nn] = recvbuf[start+idx];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user