Use correct library for unit test if LAMMPS_MACHINE_NAME is set

This commit is contained in:
Richard Berger
2020-09-20 17:52:24 -04:00
parent dfd447f570
commit 7d07d04989

View File

@ -12,7 +12,11 @@ except:
pass pass
try: 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 has_mpi = lmp.has_mpi_support
lmp.close() lmp.close()
except: except: