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

« back to all changes in this revision

Viewing changes to src/USER-CUDA/fix_shake_cuda.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:
1
 
/* ----------------------------------------------------------------------
 
1
/* -*- c++ -*- ----------------------------------------------------------
2
2
   LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
3
3
   http://lammps.sandia.gov, Sandia National Laboratories
4
4
   Steve Plimpton, sjplimp@sandia.gov
43
43
  void set_arrays(int);
44
44
  int pack_exchange(int, double *);
45
45
  int unpack_exchange(int, double *);
46
 
  int pack_comm(int, int *, double *, int, int *);
47
 
  void unpack_comm(int, int, double *);
 
46
  int pack_forward_comm(int, int *, double *, int, int *);
 
47
  void unpack_forward_comm(int, int, double *);
48
48
 
49
49
  int dof(int);
50
50
  void reset_dt();
66
66
  bool neighbor_step;                                         // was neighboring done in this step -> need to run the Cuda_FixShake_Init
67
67
 
68
68
  double *bond_distance,*angle_distance; // constraint distances
69
 
  cCudaData<double           , X_FLOAT , xx >* cu_bond_distance;
70
 
  cCudaData<double           , X_FLOAT , xx >* cu_angle_distance;
 
69
  cCudaData<double           , X_CFLOAT , xx >* cu_bond_distance;
 
70
  cCudaData<double           , X_CFLOAT , xx >* cu_angle_distance;
71
71
 
72
72
  int ifix_respa;                        // rRESPA fix needed by SHAKE
73
73
  int nlevels_respa;                     // copies of needed rRESPA variables
93
93
  cCudaData<int           , int            , xx >* cu_shake_flag;
94
94
  cCudaData<int           , int            , yx >* cu_shake_atom;
95
95
  cCudaData<int           , int            , yx >* cu_shake_type;
96
 
  cCudaData<double           , X_FLOAT , xy >* cu_xshake;
 
96
  cCudaData<double           , X_CFLOAT , xy >* cu_xshake;
97
97
  cCudaData<int           , int            , xx >* cu_list;
98
 
  cCudaData<double           , ENERGY_FLOAT , xx >* cu_virial;
99
 
  int* countoccur;
 
98
  cCudaData<double           , ENERGY_CFLOAT , xx >* cu_virial;
100
99
 
101
 
  int vflag;                            // virial flag
102
100
  double dtv,dtfsq;                     // timesteps for trial move
103
101
  double dtf_inner,dtf_innerhalf;       // timesteps for rRESPA trial move
104
102