This script
region box block 0 10 0 10 0 10 units box
create_box 1 box
create_atoms 1 single 5 5 5 units box
group fst id == 1
gives me an error
ERROR: Expected integer parameter in input script or data file
(../group.cpp:290).
I can get the expected result with
group fst id 1
but the error breaks old scripts and the documentation says "==" should work.
http://lammps.sandia.gov/doc/group.html
My version is 4e3bc9d059a97.
This script
region box block 0 10 0 10 0 10 units box
create_box 1 box
create_atoms 1 single 5 5 5 units box
group fst id == 1
gives me an error
ERROR: Expected integer parameter in input script or data file
(../group.cpp:290).
I can get the expected result with
group fst id 1
but the error breaks old scripts and the documentation says "==" should
work.
LAMMPS Molecular Dynamics Simulator
My version is 4e3bc9d059a97.
it should work, but there is a bug. the following change fixes it.
diff --git a/src/group.cpp b/src/group.cpp
index 080b5c2..0c14b91 100644
--- a/src/group.cpp
+++ b/src/group.cpp
@@ -186,7 +186,7 @@ void Group::assign(int narg, char **arg)
if (narg > 3 &&
(strcmp(arg[2],"<") == 0 || strcmp(arg[2],">") == 0 ||
strcmp(arg[2],"<=") == 0 || strcmp(arg[2],">=") == 0 ||
- strcmp(arg[2],"<>") == 0)) {
+ strcmp(arg[2],"<>") == 0 || strcmp(arg[2],"==") == 0)) {
int condition = -1;
if (strcmp(arg[2],"<") == 0) condition = LT;
axel.
fixed it - will be in next patch
thanks,
Steve