debug gpu

This commit is contained in:
James McClure 2022-05-11 14:05:16 -04:00
parent 50c7429995
commit 4661cbdce4
2 changed files with 5 additions and 2 deletions

View File

@ -1076,7 +1076,7 @@ void Membrane::SendD3Q19AA(double *dist){
Lock=true;
}
// assign tag of 19 to D3Q19 communication
sendtag = recvtag = 19;
sendtag = recvtag = 190;
ScaLBL_DeviceBarrier();
// Pack the distributions
//...Packing for x face(2,8,10,12,14)................................

View File

@ -172,7 +172,10 @@ __global__ void dvc_ScaLBL_D3Q7_Membrane_Unpack(int q,
idx = d3q7_linkList[start+link];
// get the distribution index
n = d3q7_recvlist[start+idx];
if (!(n < 0)){
if (n > N){
printf(" MEMBRANE ERROR: q=%i, idx=%i, n=%i, Np=%i \n",q,idx,n,N);
}
else if (!(n < 0)){
fp = recvbuf[start + idx];
dist[q * N + n] = fp;
}