From 7d07d04989e0063c920e4ec08d2798f739375c7c Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Sun, 20 Sep 2020 17:52:24 -0400 Subject: [PATCH] Use correct library for unit test if LAMMPS_MACHINE_NAME is set --- unittest/python/python-open.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unittest/python/python-open.py b/unittest/python/python-open.py index 2ace52296f..6ad7d335d5 100644 --- a/unittest/python/python-open.py +++ b/unittest/python/python-open.py @@ -12,7 +12,11 @@ except: pass try: - lmp = lammps() + if 'LAMMPS_MACHINE_NAME' in os.environ: + machine = os.environ['LAMMPS_MACHINE_NAME'] + else: + machine = "" + lmp = lammps(name=machine) has_mpi = lmp.has_mpi_support lmp.close() except: