I am trying to print a computed variable and I can’t figure out what I am doing wrong. I have the following in my input file:
compute eadh glfr group/group gpoly
thermo 100
thermo_style custom step temp evdwl ecoul pe ke etotal press c_eadh
variable outadh equal eadh
fix oa all print 100 “$outadh” file adh.txt
which gives me the error:
ERROR on proc 0: Substitution for illegal variable (…/input.cpp:475)
for all processors. Any help would be appreciated
Thanks
Ben Hanson
I am trying to print a computed variable and I can't figure out what I am
doing wrong. I have the following in my input file:
compute eadh glfr group/group gpoly
thermo 100
thermo_style custom step temp evdwl ecoul pe ke etotal press c_eadh
variable outadh equal eadh
fix oa all print 100 "$outadh" file adh.txt
which gives me the error:
ERROR on proc 0: Substitution for illegal variable (../input.cpp:475)
variables with multi-character names have to use the ${name}
expansion. your code tries to expand the variable $o and then wants to
print "utadh" as a literal string.
please see the variable command documentation for additional information.
axel.