Hi,
I would like to specify a variable with mathematical calculation in run command, but found it failed. Sicne I restart from previous steps, I have introduced a variable named “rstep” and substitute it into dump, fix bond and run.
In lammps input file, I have,
fix 2 all reax/c/bonds 100 bonds_${rsetp}.txt
dump 3 all custom 100 dumpsys_${rsetp}.lammpstrj id type x y z
run (100000-${rsetp})
And the terminal command, it is going to be,
lmp -var rsetp 10 -in file.in
And it came out the warning message of “ERROR: Invalid syntax in variable formula (src/variable.cpp:2244)”. I wonder whether it is possible to conduct this subtraction with input variable in run command.
Thanks,
Catherine