user defined function

Submitted by Tao on Thu, 05/19/2011 - 11:56

Hi all,
Can we define functions in LIGGGHTS script? I mean, define a section of codes that can be used elsewhere in LIGGGHTS script.

Thanks in advance.

Cheers,
Tao

ckloss's picture

ckloss | Thu, 05/19/2011 - 12:53

I don't know what exactly you mean? but have a look at the variable command. Likewise, you can nest input scripts, insert if statements etc... Have a look at the manual, everything is explained there

Christoph