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

« back to all changes in this revision

Viewing changes to lib/gpu/lal_gayberne_lj.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:
53
53
    virial[i]=(acctyp)0;
54
54
 
55
55
  if (ii<inum) {
56
 
    const __global int *nbor, *nbor_end;
 
56
    int nbor, nbor_end;
57
57
    int i, numj;
58
58
    __local int n_stride;
59
59
    nbor_info_e(dev_nbor,stride,t_per_atom,ii,offset,i,numj,
68
68
    numtyp factor_lj;
69
69
    for ( ; nbor<nbor_end; nbor+=n_stride) {
70
70
  
71
 
      int j=*nbor;
 
71
      int j=dev_nbor[nbor];
72
72
      factor_lj = sp_lj[sbmask(j)];
73
73
      j &= NEIGHMASK;
74
74
 
276
276
    virial[i]=(acctyp)0;
277
277
  
278
278
  if (ii<inum) {
279
 
    const __global int *nbor, *list_end;
 
279
    int nbor, nbor_end;
280
280
    int i, numj;
281
281
    __local int n_stride;
282
282
    nbor_info_e(dev_ij,stride,t_per_atom,ii,offset,i,numj,
283
 
                n_stride,list_end,nbor);
 
283
                n_stride,nbor_end,nbor);
284
284
  
285
285
    numtyp4 ix; fetch4(ix,i,pos_tex);
286
286
    int itype=ix.w;
287
287
 
288
288
    numtyp factor_lj;
289
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
289
    for ( ; nbor<nbor_end; nbor+=n_stride) {
290
290
  
291
 
      int j=*nbor;
 
291
      int j=dev_ij[nbor];
292
292
      factor_lj = sp_lj[sbmask(j)];
293
293
      j &= NEIGHMASK;
294
294
 
371
371
  __syncthreads();
372
372
  
373
373
  if (ii<inum) {
374
 
    const __global int *nbor, *list_end;
 
374
    int nbor, nbor_end;
375
375
    int i, numj;
376
376
    __local int n_stride;
377
377
    nbor_info_e(dev_ij,stride,t_per_atom,ii,offset,i,numj,
378
 
                n_stride,list_end,nbor);
 
378
                n_stride,nbor_end,nbor);
379
379
 
380
380
    numtyp4 ix; fetch4(ix,i,pos_tex);
381
381
    int iw=ix.w;
382
382
    int itype=fast_mul((int)MAX_SHARED_TYPES,iw);
383
383
 
384
384
    numtyp factor_lj;
385
 
    for ( ; nbor<list_end; nbor+=n_stride) {
 
385
    for ( ; nbor<nbor_end; nbor+=n_stride) {
386
386
  
387
 
      int j=*nbor;
 
387
      int j=dev_ij[nbor];
388
388
      factor_lj = sp_lj[sbmask(j)];
389
389
      j &= NEIGHMASK;
390
390