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

« back to all changes in this revision

Viewing changes to src/USER-CUDA/pair_lj_expand_cuda.cpp

  • 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:
57
57
#include "respa.h"
58
58
#include "memory.h"
59
59
#include "error.h"
60
 
#include "cuda.h"
 
60
#include "user_cuda.h"
61
61
 
62
62
using namespace LAMMPS_NS;
63
63
 
120
120
void PairLJExpandCuda::settings(int narg, char **arg)
121
121
{
122
122
        PairLJExpand::settings(narg, arg);
123
 
        cuda->shared_data.pair.cut_global = (F_FLOAT) cut_global;
 
123
        cuda->shared_data.pair.cut_global = (F_CFLOAT) cut_global;
124
124
}
125
125
 
126
126
/* ---------------------------------------------------------------------- */
143
143
  }
144
144
  else
145
145
  {
146
 
          irequest = neighbor->request(this);
 
146
    irequest = neighbor->request(this,instance_me);
147
147
    neighbor->requests[irequest]->full = 1;
148
148
    neighbor->requests[irequest]->half = 0;
149
149
    neighbor->requests[irequest]->cudable = 1;
172
172
        PairLJExpand::ev_setup(eflag,vflag);
173
173
 
174
174
  if (eflag_atom && atom->nmax > maxeatomold)
175
 
        {delete cuda->cu_eatom; cuda->cu_eatom = new cCudaData<double, ENERGY_FLOAT, x > ((double*)eatom, & cuda->shared_data.atom.eatom , atom->nmax  );}
 
175
        {delete cuda->cu_eatom; cuda->cu_eatom = new cCudaData<double, ENERGY_CFLOAT, x > ((double*)eatom, & cuda->shared_data.atom.eatom , atom->nmax  );}
176
176
 
177
177
  if (vflag_atom && atom->nmax > maxeatomold)
178
 
        {delete cuda->cu_vatom; cuda->cu_vatom = new cCudaData<double, ENERGY_FLOAT, yx > ((double*)vatom, & cuda->shared_data.atom.vatom , atom->nmax, 6  );}
 
178
        {delete cuda->cu_vatom; cuda->cu_vatom = new cCudaData<double, ENERGY_CFLOAT, yx > ((double*)vatom, & cuda->shared_data.atom.vatom , atom->nmax, 6  );}
179
179
 
180
180
}