Problem with using ramp variable.

Dear All

When I use the following variable command in my input file:

variable rampylo equal ramp(ylo, ylo+0.5)
variable rampyhi equal ramp(yhi, yhi-0.5)
variable rampzlo equal ramp(zlo, zlo+0.65)
variable rampzhi equal ramp(zhi, zhi-0.65)

I have the following error:

ERROR: Illegal variable command (…/variable.cpp:380)

Would someone help me on finding the problem with the variable command?

Thanks very much!

Hao

Dear All

    When I use the following variable command in my input file:

variable rampylo equal ramp(ylo, ylo+0.5)
variable rampyhi equal ramp(yhi, yhi-0.5)
variable rampzlo equal ramp(zlo, zlo+0.65)
variable rampzhi equal ramp(zhi, zhi-0.65)

I have the following error:

ERROR: Illegal variable command (../variable.cpp:380)

Would someone help me on finding the problem with the variable command?

from the variable command docs:

For the equal and vector and atom styles, a single string is specified
which represents a formula that will be evaluated afresh each time the
variable is used. If you want spaces in the string, enclose it in
double quotes so the parser will treat it as a single argument.

axel.

Thanks a lot, Axel. The problem come from space.