Illegal Variable Command

I’m getting the following error: illegal variable command.

variable up equal 1.0e-6
units metal
variable cfac equal 1.0e-4
variable cunits string GPa

variable etol equal 0.0
variable ftol equal 1.0e-10

I’ve checked the spelling and looked at the documentation, but I still don’t see what’s wrong.

I'm getting the following error: illegal variable command.

...and i don't get any error message with the current version of lammps.

axel.

variable up equal 1.0e-6
units metal
variable cfac equal 1.0e-4
variable cunits string GPa

variable etol equal 0.0
variable ftol equal 1.0e-10

I've checked the spelling and looked at the documentation, but I still don't
see what's wrong.

you have an old version of lammps?

axel.