debug gpu
This commit is contained in:
parent
50c7429995
commit
4661cbdce4
@ -1076,7 +1076,7 @@ void Membrane::SendD3Q19AA(double *dist){
|
|||||||
Lock=true;
|
Lock=true;
|
||||||
}
|
}
|
||||||
// assign tag of 19 to D3Q19 communication
|
// assign tag of 19 to D3Q19 communication
|
||||||
sendtag = recvtag = 19;
|
sendtag = recvtag = 190;
|
||||||
ScaLBL_DeviceBarrier();
|
ScaLBL_DeviceBarrier();
|
||||||
// Pack the distributions
|
// Pack the distributions
|
||||||
//...Packing for x face(2,8,10,12,14)................................
|
//...Packing for x face(2,8,10,12,14)................................
|
||||||
|
@ -172,7 +172,10 @@ __global__ void dvc_ScaLBL_D3Q7_Membrane_Unpack(int q,
|
|||||||
idx = d3q7_linkList[start+link];
|
idx = d3q7_linkList[start+link];
|
||||||
// get the distribution index
|
// get the distribution index
|
||||||
n = d3q7_recvlist[start+idx];
|
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];
|
fp = recvbuf[start + idx];
|
||||||
dist[q * N + n] = fp;
|
dist[q * N + n] = fp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user