Use correct library for unit test if LAMMPS_MACHINE_NAME is set
This commit is contained in:
@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user