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

« back to all changes in this revision

Viewing changes to src/compute_temp_com.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:
60
60
 
61
61
void ComputeTempCOM::setup()
62
62
{
 
63
  dynamic = 0;
 
64
  if (dynamic_user || group->dynamic[igroup]) dynamic = 1;
63
65
  fix_dof = -1;
64
66
  dof_compute();
65
67
}
161
163
   remove velocity bias from atom I to leave thermal velocity
162
164
------------------------------------------------------------------------- */
163
165
 
164
 
void ComputeTempCOM::remove_bias(int, double *v)
 
166
void ComputeTempCOM::remove_bias(int i, double *v)
165
167
{
166
168
  v[0] -= vbias[0];
167
169
  v[1] -= vbias[1];
191
193
   assume remove_bias() was previously called
192
194
------------------------------------------------------------------------- */
193
195
 
194
 
void ComputeTempCOM::restore_bias(int, double *v)
 
196
void ComputeTempCOM::restore_bias(int i, double *v)
195
197
{
196
198
  v[0] += vbias[0];
197
199
  v[1] += vbias[1];