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

« back to all changes in this revision

Viewing changes to src/RIGID/fix_rigid_small.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
52
52
 
53
53
  int pack_exchange(int, double *);
54
54
  int unpack_exchange(int, double *);
55
 
  int pack_comm(int, int *, double *, int, int *);
56
 
  void unpack_comm(int, int, double *);
 
55
  int pack_forward_comm(int, int *, double *, int, int *);
 
56
  void unpack_forward_comm(int, int, double *);
57
57
  int pack_reverse_comm(int, int, double *);
58
58
  void unpack_reverse_comm(int, int *, double *);
59
59
 
78
78
  double MINUSPI,TWOPI;
79
79
 
80
80
  char *infile;             // file to read rigid body attributes from
81
 
  int firstflag;            // 1 for first-time setup of rigid bodies
 
81
  int staticflag;           // 1 if static body properties are setup, else 0
82
82
  int commflag;             // various modes of forward/reverse comm
83
83
  int nbody;                // total # of rigid bodies
84
84
  tagint maxmol;            // max mol-ID
117
117
                        // ID = tag of atom that owns body
118
118
  int *atom2body;       // index of owned/ghost body this atom is in, -1 if not
119
119
                        // can point to original or any image of the body
 
120
  imageint *xcmimage;   // internal image flags for atoms in rigid bodies
 
121
                        // set relative to in-box xcm of each body
120
122
  double **displace;    // displacement of each atom in body coords
121
 
 
122
 
  int *eflags;              // flags for extended particles
123
 
  double **orient;          // orientation vector of particle wrt rigid body
124
 
  double **dorient;         // orientation of dipole mu wrt rigid body
125
 
 
126
 
  int extended;             // 1 if any particles have extended attributes
127
 
  int orientflag;           // 1 if particles store spatial orientation
128
 
  int dorientflag;          // 1 if particles store dipole orientation
 
123
  int *eflags;          // flags for extended particles
 
124
  double **orient;      // orientation vector of particle wrt rigid body
 
125
  double **dorient;     // orientation of dipole mu wrt rigid body
 
126
 
 
127
  int extended;         // 1 if any particles have extended attributes
 
128
  int orientflag;       // 1 if particles store spatial orientation
 
129
  int dorientflag;      // 1 if particles store dipole orientation
129
130
 
130
131
  int POINT,SPHERE,ELLIPSOID,LINE,TRIANGLE,DIPOLE;   // bitmasks for eflags
131
132
  int OMEGA,ANGMOM,TORQUE;
182
183
  double *rsqclose;
183
184
  double rsqfar;
184
185
 
 
186
  void image_shift();
185
187
  void set_xv();
186
188
  void set_v();
187
189
  void create_bodies();