WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 61ff2cd

Browse files
committed
fix shutdown
1 parent 3d1f07f commit 61ff2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylammpsmpi/mpi/lmpmpi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ 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["shutdown"]:
482+
if "shutdown" in input_dict.keys() and input_dict["shutdown"]:
483483
if MPI.COMM_WORLD.rank == 0:
484484
socket.close()
485485
context.term()

0 commit comments

Comments
 (0)