Skip to content

Commit b4812d8

Browse files
authored
Merge pull request #108 from pyiron/pympipool_update
update pympipool to 0.5.0
2 parents 019a2de + 61ff2cd commit b4812d8

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

.ci_support/environment-mpich.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ dependencies:
1111
- dask-jobqueue
1212
- cloudpickle =2.2.1
1313
- mpi4py =3.1.4
14-
- pympipool =0.4.2
14+
- pympipool =0.5.0
1515
- pyzmq =25.1.0

.ci_support/environment-openmpi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ dependencies:
1111
- dask-jobqueue
1212
- cloudpickle =2.2.1
1313
- mpi4py =3.1.4
14-
- pympipool =0.4.2
14+
- pympipool =0.5.0
1515
- pyzmq =25.1.0

binder/environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ dependencies:
1010
- dask-jobqueue
1111
- cloudpickle =2.2.1
1212
- mpi4py =3.1.4
13-
- pympipool =0.4.2
13+
- pympipool =0.5.0
1414
- pyzmq =25.1.0

pylammpsmpi/mpi/lmpmpi.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -479,17 +479,19 @@ def _run_lammps_mpi(argument_lst):
479479
else:
480480
input_dict = None
481481
input_dict = MPI.COMM_WORLD.bcast(input_dict, root=0)
482-
if input_dict["c"] == "close":
482+
if "shutdown" in input_dict.keys() and input_dict["shutdown"]:
483483
if MPI.COMM_WORLD.rank == 0:
484484
socket.close()
485485
context.term()
486486
job.close()
487487
break
488-
output = select_cmd(input_dict["c"])(job=job, funct_args=input_dict["d"])
488+
output = select_cmd(input_dict["command"])(
489+
job=job, funct_args=input_dict["args"]
490+
)
489491
if MPI.COMM_WORLD.rank == 0 and output is not None:
490492
# with open('process.txt', 'a') as file:
491493
# print('Output:', output, file=file)
492-
socket.send(cloudpickle.dumps({"r": output}))
494+
socket.send(cloudpickle.dumps({"result": output}))
493495

494496

495497
if __name__ == "__main__":

pylammpsmpi/utils/lammps.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def start_process(self):
5151

5252
def _send_and_receive_dict(self, command, data=None):
5353
return self._interface.send_and_receive_dict(
54-
input_dict={"c": command, "d": data}
54+
input_dict={"command": command, "args": data}
5555
)
5656

5757
def _send(self, command, data=None):
@@ -70,7 +70,7 @@ def _send(self, command, data=None):
7070
-------
7171
None
7272
"""
73-
self._interface.send_dict({"c": command, "d": data})
73+
self._interface.send_dict({"command": command, "args": data})
7474

7575
def _receive(self):
7676
"""

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
keywords='lammps, mpi4py',
2727
packages=find_packages(exclude=["*tests*"]),
2828
install_requires=[
29-
"cloudpickle==2.2.1", "mpi4py==3.1.4", "pympipool==0.4.2", "pyzmq==25.1.0",
29+
"cloudpickle==2.2.1", "mpi4py==3.1.4", "pympipool==0.5.0", "pyzmq==25.1.0",
3030
],
3131
cmdclass=versioneer.get_cmdclass(),
3232
)

0 commit comments

Comments
 (0)