enable support for dynamic groups in fix planeforce and fix lineforce
This commit is contained in:
@ -29,6 +29,8 @@ using namespace FixConst;
|
|||||||
FixLineForce::FixLineForce(LAMMPS *lmp, int narg, char **arg) :
|
FixLineForce::FixLineForce(LAMMPS *lmp, int narg, char **arg) :
|
||||||
Fix(lmp, narg, arg)
|
Fix(lmp, narg, arg)
|
||||||
{
|
{
|
||||||
|
dynamic_group_allow = 1;
|
||||||
|
|
||||||
if (narg != 6) error->all(FLERR,"Illegal fix lineforce command");
|
if (narg != 6) error->all(FLERR,"Illegal fix lineforce command");
|
||||||
xdir = force->numeric(FLERR,arg[3]);
|
xdir = force->numeric(FLERR,arg[3]);
|
||||||
ydir = force->numeric(FLERR,arg[4]);
|
ydir = force->numeric(FLERR,arg[4]);
|
||||||
|
|||||||
@ -29,6 +29,8 @@ using namespace FixConst;
|
|||||||
FixPlaneForce::FixPlaneForce(LAMMPS *lmp, int narg, char **arg) :
|
FixPlaneForce::FixPlaneForce(LAMMPS *lmp, int narg, char **arg) :
|
||||||
Fix(lmp, narg, arg)
|
Fix(lmp, narg, arg)
|
||||||
{
|
{
|
||||||
|
dynamic_group_allow = 1;
|
||||||
|
|
||||||
if (narg != 6) error->all(FLERR,"Illegal fix planeforce command");
|
if (narg != 6) error->all(FLERR,"Illegal fix planeforce command");
|
||||||
xdir = force->numeric(FLERR,arg[3]);
|
xdir = force->numeric(FLERR,arg[3]);
|
||||||
ydir = force->numeric(FLERR,arg[4]);
|
ydir = force->numeric(FLERR,arg[4]);
|
||||||
|
|||||||
Reference in New Issue
Block a user