~ubuntu-branches/debian/sid/lammps/sid

« back to all changes in this revision

Viewing changes to lib/gpu/lal_colloid.cu

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2015-04-29 23:44:49 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150429234449-mbhy9utku6hp6oq8
Tags: 0~20150313.gitfa668e1-1
Upload into unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    virial[i]=(acctyp)0;
56
56
  
57
57
  if (ii<inum) {
58
 
    const __global int *nbor, *list_end;
 
58
    int nbor, nbor_end;
59
59
    int i, numj;
60
60
    __local int n_stride;
61
61
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
62
 
              n_stride,list_end,nbor);
 
62
              n_stride,nbor_end,nbor);
63
63
  
64
64
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
65
65
    int itype=ix.w;
66
66
 
67
67
    numtyp factor_lj;
68
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
68
    for ( ; nbor<nbor_end; nbor+=n_stride) {
69
69
  
70
 
      int j=*nbor;
 
70
      int j=dev_packed[nbor];
71
71
      factor_lj = sp_lj[sbmask(j)];
72
72
      j &= NEIGHMASK;
73
73
 
219
219
  __syncthreads();
220
220
  
221
221
  if (ii<inum) {
222
 
    const __global int *nbor, *list_end;
 
222
    int nbor, nbor_end;
223
223
    int i, numj;
224
224
    __local int n_stride;
225
225
    nbor_info(dev_nbor,dev_packed,nbor_pitch,t_per_atom,ii,offset,i,numj,
226
 
              n_stride,list_end,nbor);
 
226
              n_stride,nbor_end,nbor);
227
227
 
228
228
    numtyp4 ix; fetch4(ix,i,pos_tex); //x_[i];
229
229
    int iw=ix.w;
230
230
    int itype=fast_mul((int)MAX_SHARED_TYPES,iw);
231
231
 
232
232
    numtyp factor_lj;
233
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
233
    for ( ; nbor<nbor_end; nbor+=n_stride) {
234
234
  
235
 
      int j=*nbor;
 
235
      int j=dev_packed[nbor];
236
236
      factor_lj = sp_lj[sbmask(j)];
237
237
      j &= NEIGHMASK;
238
238