Skip to content

Commit

Permalink
Fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Oct 16, 2023
1 parent c45c7d0 commit f02a1ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/binding/python/openpmd_api/pipe/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ def __init__(self, infile, outfile, inconfig, outconfig, comm):
self.loads = []
self.comm = comm
if HAVE_MPI:
hostinfo = io.HostInfo.HOSTNAME
hostinfo = io.HostInfo.POSIX_HOSTNAME \
if io.HostInfo.POSIX_HOSTNAME.available()\
else io.HostInfo.MPI_PROCESSOR_NAME
self.outranks = hostinfo.get_collective(self.comm)
else:
self.outranks = {i: str(i) for i in range(self.comm.size)}
Expand Down

0 comments on commit f02a1ec

Please sign in to comment.