Cleaned up code
This commit is contained in:
@ -1639,10 +1639,6 @@ __kernel void k_amoeba_fphi_uind(const __global numtyp4 *restrict thetai1,
|
||||
const int nxlo_out, const int ngridxy,
|
||||
const int ngridx)
|
||||
{
|
||||
//int tid, ii, offset, i, n_stride;
|
||||
//atom_info(t_per_atom,ii,tid,offset);
|
||||
|
||||
|
||||
int tid=THREAD_ID_X;
|
||||
int ii=tid+BLOCK_ID_X*BLOCK_SIZE_X;
|
||||
|
||||
@ -1763,23 +1759,17 @@ __kernel void k_amoeba_fphi_uind(const __global numtyp4 *restrict thetai1,
|
||||
*/
|
||||
const int i1 = istart + ib;
|
||||
const numtyp4 tha1 = thetai1[i1];
|
||||
/*
|
||||
const numtyp w0 = tha1.x;
|
||||
const numtyp w1 = tha1.y;
|
||||
const numtyp w2 = tha1.z;
|
||||
const numtyp w3 = tha1.w;
|
||||
*/
|
||||
const int gidx = my + i; // k*ngridxy + j*ngridx + i;
|
||||
const numtyp2 tq = grid[gidx];
|
||||
const numtyp tq_1 = tq.x; //grid[gidx];
|
||||
const numtyp tq_2 = tq.y; //grid[gidx+1];
|
||||
t0_1 += tq_1*tha1.x; // w0
|
||||
t1_1 += tq_1*tha1.y; // w1
|
||||
t2_1 += tq_1*tha1.z; // w2
|
||||
t0_2 += tq_2*tha1.x; // w0
|
||||
t1_2 += tq_2*tha1.y; // w1
|
||||
t2_2 += tq_2*tha1.z; // w2
|
||||
t3 += (tq_1+tq_2)*tha1.w; // w3
|
||||
t0_1 += tq_1*tha1.x;
|
||||
t1_1 += tq_1*tha1.y;
|
||||
t2_1 += tq_1*tha1.z;
|
||||
t0_2 += tq_2*tha1.x;
|
||||
t1_2 += tq_2*tha1.y;
|
||||
t2_2 += tq_2*tha1.z;
|
||||
t3 += (tq_1+tq_2)*tha1.w;
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user