git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5023 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -24,11 +24,13 @@ FixWallHarmonic::FixWallHarmonic(LAMMPS *lmp, int narg, char **arg) :
|
||||
FixWall(lmp, narg, arg) {}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
interaction of all particles in group with all 6 walls (if defined)
|
||||
interaction of all particles in group with a wall
|
||||
m = index of wall coeffs
|
||||
which = xlo,xhi,ylo,yhi,zlo,zhi
|
||||
error if any particle is on or behind wall
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void FixWallHarmonic::wall_particle(int m, double coord)
|
||||
void FixWallHarmonic::wall_particle(int m, int which, double coord)
|
||||
{
|
||||
double delta,dr,fwall;
|
||||
|
||||
@ -37,8 +39,8 @@ void FixWallHarmonic::wall_particle(int m, double coord)
|
||||
int *mask = atom->mask;
|
||||
int nlocal = atom->nlocal;
|
||||
|
||||
int dim = m/2;
|
||||
int side = m % 2;
|
||||
int dim = which / 2;
|
||||
int side = which % 2;
|
||||
if (side == 0) side = -1;
|
||||
|
||||
int onflag = 0;
|
||||
|
||||
Reference in New Issue
Block a user