Unverified Commit 25bc74eb authored by Steve Plimpton's avatar Steve Plimpton Committed by GitHub
Browse files

Merge pull request #1070 from rbberger/pylammps_mpi_bugfix

Fixes issue #1069
parents c0150e80 4b0382ca
......@@ -173,6 +173,9 @@ class lammps(object):
if lammps.has_mpi4py:
from mpi4py import MPI
self.comm = MPI.COMM_WORLD
self.opened = 1
if cmdargs:
......@@ -862,6 +865,10 @@ class PyLammps(object):
def run(self, *args, **kwargs):
output = self.__getattr__('run')(*args, **kwargs)
output = self.lmp.comm.bcast(output, root=0)
self.runs += get_thermo_data(output)
return output
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment