Dear all,
I got an error message: Illegal print command (…/input.cpp:879) when running the following commands:
…
compute peratom carbon pe/atom
compute peC all reduce sum c_peratom
variable pot_C equal c_peC
print ${pot_C} append info.dat screen no
…
And I got these in my log file:
…
print ${pot_C} append info.dat screen no
print -68.741806512159627118 append info.dat screen no
ERROR: Illegal print command (…/input.cpp:879)
…
I have been looking at the error section in the LAMMPS webpage but found nothing about this error message.
I am looking at the input.cpp but I still do not understand what was happening.
Thank you.
Best regards,
Iwan H. Sahputra
Dear all,
I got an error message: Illegal print command (../input.cpp:879) when
running the following commands:
....
compute peratom carbon pe/atom
compute peC all reduce sum c_peratom
variable pot_C equal c_peC
print ${pot_C} append info.dat screen no
....
And I got these in my log file:
....
print ${pot_C} append info.dat screen no
print -68.741806512159627118 append info.dat screen no
ERROR: Illegal print command (../input.cpp:879)
....
I have been looking at the error section in the LAMMPS webpage but found
nothing about this error message.
I am looking at the input.cpp but I still do not understand what was
happening.
illegal XXX command means that you are not using the syntax of that
command correctly. thus you should have a closer look at:
http://lammps.sandia.gov/doc/print.html in this case and adjust your
input accordingly.
axel.