Dear all
I used the example in LAMMPS to calculate the elastic constant of Si (I do not change anything in /example/ELASTIC), and the program fed me an error:
if \{dir\} == 1 then "variable len0 equal {lx0}"
if 1 == 1 then "variable len0 equal ${lx0}"
ERROR: Illegal if command
I have tried a lot of possible syntax of if command in "displace.mod" file, but it still sand me illegal error. Could someone tell me how to fix it? Thanks a lot!
My version is lammps-19Nov10
Best regards
Linesa Liu