From 0c348105181f85e823aee7cbf1e88ea1577ebb4b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 17 Feb 2021 15:29:33 -0500 Subject: [PATCH] lmp.mpi4py will always be false if LAMMPS has been compiled without MPI support --- unittest/python/python-open.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittest/python/python-open.py b/unittest/python/python-open.py index 67500ea6fa..5140ce9185 100644 --- a/unittest/python/python-open.py +++ b/unittest/python/python-open.py @@ -37,7 +37,7 @@ class PythonOpen(unittest.TestCase): lmp=lammps(name=self.machine) self.assertIsNot(lmp.lmp,None) self.assertEqual(lmp.opened,1) - self.assertEqual(has_mpi4py,lmp.has_mpi4py) + self.assertEqual(has_mpi and has_mpi4py,lmp.has_mpi4py) self.assertEqual(has_mpi,lmp.has_mpi_support) lmp.close() self.assertIsNone(lmp.lmp,None)