From 92fe1373a52f6035cfdadbb922ca5663bae6a541 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 9 May 2021 20:24:22 -0400 Subject: [PATCH] fix bug --- python/lammps/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/lammps/core.py b/python/lammps/core.py index cee7b107eb..36acde039a 100644 --- a/python/lammps/core.py +++ b/python/lammps/core.py @@ -307,7 +307,8 @@ class lammps(object): # tested to work with mpi4py versions 2 and 3 self.has_mpi4py = mpi4py_version.split('.')[0] in ['2','3'] except: - self.has_mpi4py = None + # ignore failing import + pass # if no ptr provided, create an instance of LAMMPS # don't know how to pass an MPI communicator from PyPar