"Invalid keyword" error with primitive wall

Submitted by sbateman on Mon, 07/16/2012 - 18:52

I'm using LIGGGHTS 2.0.3, and in my input script this line is giving me trouble:

fix xwall active wall/gran/hertz/history primitive type 2 xplane ${wall_xlo} ${wall_xhi}

where the wall_xlo and wall_xhi variables are defined earlier. This gives the error:

ERROR: Fix wall/gran/hertz/history (id xwall): invalid keyword or keyword(s) in wrong order (fix_wall_gran.cpp:224)

According to the documentation, this syntax should be correct.
A little bit of debugging brought me to this section of code beginning at line 56 of primitive_wall_definitions.h:

char *wallString[] =
{
"xplane",
"yplane",
"zplane",
"xcylinder",
"ycylinder",
"zcylinder"
};
int numArgs[] =
{
1,
1,
1,
3,
3,
3
};

So the code is expecting only 1 argument for "xplane", but the documentation indicates that there should be 2 arguments (lo and hi values). Is this a bug, or am I misunderstanding something?

Thanks.

ckloss's picture

ckloss | Mon, 07/16/2012 - 18:58

Sorry - that's a typo in the doc. It takes only one value - the wall position
Will fix the doc in the next release

Thanks, Christoph