Commit a08cf7a4 authored by Richard Berger's avatar Richard Berger
Browse files

Add verbose option in PyLammps methods

This option allows forcing LAMMPS output to be printed to the console.
parent 691de01b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -640,6 +640,10 @@ class PyLammps(object):
      with OutputCapture() as capture:
        self.lmp.command(' '.join(cmd_args))
        output = capture.output

      if 'verbose' in kwargs and kwargs['verbose']:
        print(output)

      lines = output.splitlines()

      if len(lines) > 1: