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

« back to all changes in this revision

Viewing changes to src/GPU/pair_buck_gpu.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:
45
45
                  double **offset, double *special_lj, const int inum,
46
46
                  const int nall, const int max_nbors,  const int maxspecial,
47
47
                  const double cell_size, int &gpu_mode, FILE *screen);
 
48
void buck_gpu_reinit(const int ntypes, double **cutsq, double **host_rhoinv,
 
49
                  double **host_buck1, double **host_buck2,
 
50
                  double **host_a, double **host_c, double **offset);
48
51
void buck_gpu_clear();
49
52
int ** buck_gpu_compute_n(const int ago, const int inum_full, const int nall,
50
53
                          double **host_x, int *host_type, double *sublo,
153
156
  GPU_EXTRA::check_flag(success,error,world);
154
157
 
155
158
  if (gpu_mode == GPU_FORCE) {
156
 
    int irequest = neighbor->request(this);
 
159
    int irequest = neighbor->request(this,instance_me);
157
160
    neighbor->requests[irequest]->half = 0;
158
161
    neighbor->requests[irequest]->full = 1;
159
162
  }
161
164
 
162
165
/* ---------------------------------------------------------------------- */
163
166
 
 
167
void PairBuckGPU::reinit()
 
168
{
 
169
  Pair::reinit();
 
170
  
 
171
  buck_gpu_reinit(atom->ntypes+1, cutsq, rhoinv, buck1, buck2,
 
172
                  a, c, offset);
 
173
}
 
174
 
 
175
/* ---------------------------------------------------------------------- */
 
176
 
164
177
double PairBuckGPU::memory_usage()
165
178
{
166
179
  double bytes = Pair::memory_usage();