Hello,
When I use the command lmp.file(‘inp’) to run lammps from python, it print all output to screen. I did not find a command to redirect the output to files but not screen. Could anyone give me a hint how to do that? Thank you!
Shijun
Hello,
When I use the command lmp.file(‘inp’) to run lammps from python, it print all output to screen. I did not find a command to redirect the output to files but not screen. Could anyone give me a hint how to do that? Thank you!
Shijun
Hello,
When I use the command lmp.file('inp') to run lammps from python, it print
all output to screen. I did not find a command to redirect the output to
files but not screen. Could anyone give me a hint how to do that? Thank you!
you have to redirect the screen output already when instantiating LAMMPS
(similar to the command line flags). for details, please check the manual
about the library/python interface and command line flags.
axel.
To wit, -screen none can be used as a command-line arg. Just pass the same from Python as the optional
cmdargs. E.g.
args = “-screen none”
words = args.split()
lmp = lammps(cmdargs=words)
Steve