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

« back to all changes in this revision

Viewing changes to lib/gpu/lal_coul_long.h

  • 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:
37
37
    * - -3 if there is an out of memory error
38
38
    * - -4 if the GPU library was not compiled for GPU
39
39
    * - -5 Double precision is not supported on card **/
40
 
  int init(const int nlocal, const int nall, const int max_nbors,
 
40
  int init(const int ntypes, double **scale,
 
41
           const int nlocal, const int nall, const int max_nbors,
41
42
           const int maxspecial, const double cell_size,
42
 
           const double gpu_split, FILE *screen, 
43
 
           const double host_cut_coulsq, double *host_special_coul,
44
 
           const double qqrd2e, const double g_ewald);
45
 
 
 
43
                 const double gpu_split, FILE *screen,
 
44
                 const double host_cut_coulsq, double *host_special_coul,
 
45
                 const double qqrd2e, const double g_ewald);
 
46
  
 
47
  /// Send updated coeffs from host to device (to be compatible with fix adapt)
 
48
  void reinit(const int ntypes, double **scale);
 
49
  
46
50
  /// Clear all host and device data
47
51
  /** \note This is called at the beginning of the init() routine **/
48
52
  void clear();
59
63
  UCL_D_Vec<numtyp4> lj1;
60
64
  /// lj3 dummy
61
65
  UCL_D_Vec<numtyp4> lj3;
 
66
  /// scale
 
67
  UCL_D_Vec<numtyp> scale;
62
68
  /// Special Coul values [0-3]
63
69
  UCL_D_Vec<numtyp> sp_cl;
64
70