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

This commit is contained in:
sjplimp
2010-12-01 16:59:10 +00:00
parent 401feb8078
commit e85b65f387
4 changed files with 91 additions and 1 deletions

View File

@ -213,7 +213,7 @@ void FixWallReflect::post_integrate()
v[i][dim] = -v[i][dim];
}
} else {
if (x[i][0] > coord) {
if (x[i][dim] > coord) {
x[i][dim] = coord - (x[i][dim] - coord);
v[i][dim] = -v[i][dim];
}