How to create a String out of 2 other strings?
Hey,
it is possible to do
"compute ${omeg} all reduce ave c_atomprops[1]
compute ${vy} all reduce ave c_atomprops[2]
variable a string c_${omeg}
variable b string c_${vy}"
and also it is possible to give a string to the next:
"variable allresult string ${a}"
but why is it not possible to create a string out of two or more strings?
"variable allresult string ${a} ${b}"
doing so yields the following error:
ERROR: Illegal variable command (../variable.cpp:278)
Forums:
- Read more about How to create a String out of 2 other strings?
- 3 comments
- Log in or register to post comments