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

« back to all changes in this revision

Viewing changes to src/compute_vacf.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:
32
32
  vector_flag = 1;
33
33
  size_vector = 4;
34
34
  extvector = 0;
 
35
  create_attribute = 1;
35
36
 
36
37
  // create a new fix STORE style
37
38
  // id = compute-ID + COMPUTE_STORE, fix group = compute group
137
138
    vector[3] /= nvacf;
138
139
  }
139
140
}
 
141
 
 
142
/* ----------------------------------------------------------------------
 
143
   initialize one atom's storage values, called when atom is created
 
144
------------------------------------------------------------------------- */
 
145
 
 
146
void ComputeVACF::set_arrays(int i)
 
147
{
 
148
  double **voriginal = fix->astore;
 
149
  double **v = atom->v;
 
150
  voriginal[i][0] = v[i][0];
 
151
  voriginal[i][1] = v[i][1];
 
152
  voriginal[i][2] = v[i][2];
 
153
}
 
154