git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2016 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2008-08-01 15:21:28 +00:00
parent 0e644f1ebc
commit f101a135b0
1 changed files with 2 additions and 1 deletions

View File

@ -96,10 +96,11 @@ void FixAddForce::post_force(int vflag)
force_flag = 0;
// foriginal[0] = - x dot f = "potential" for added force
// foriginal[123] = force on atoms before extra force added
for (int i = 0; i < nlocal; i++)
if (mask[i] & groupbit) {
foriginal[0] -= xvalue*x[i][0] + yvalue*x[i][1] + zvalue[i][2];
foriginal[0] -= xvalue*x[i][0] + yvalue*x[i][1] + zvalue*x[i][2];
foriginal[1] += f[i][0];
foriginal[2] += f[i][1];
foriginal[3] += f[i][2];