Skip to content

Commit

Permalink
re-enable MPI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anjohan committed Jun 11, 2024
1 parent 1e1d6b9 commit 5948986
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
power_list = [1, 2]
struc_list = ["random", "isolated"]
rootdir = os.getcwd()
n_cpus_list = [1] # [1, 2]
n_cpus_list = [1, 2]


@pytest.mark.skipif(
Expand Down Expand Up @@ -67,7 +67,7 @@ def test_write_potential(n_species, n_types, power, struc, multicut, n_cpus):

# Set up LAMMPS calculator.
lmp_command = os.environ.get("lmp")
if (n_cpus > 1) and ("mpirun" not in lmp_command) and ("kokkos" not in lmp_command):
if (n_cpus > 1) and ("mpirun" not in lmp_command):
lmp_command = f"mpirun -np {n_cpus} {lmp_command}"

print(lmp_command)
Expand Down Expand Up @@ -149,7 +149,7 @@ def test_lammps_uncertainty(
os.chdir(rootdir)
# Set up LAMMPS calculator.
lmp_command = os.environ.get("lmp")
if (n_cpus > 1) and ("mpirun" not in lmp_command) and ("kokkos" not in lmp_command):
if (n_cpus > 1) and ("mpirun" not in lmp_command):
lmp_command = f"mpirun -np {n_cpus} {lmp_command}"
print(lmp_command)

Expand Down

0 comments on commit 5948986

Please sign in to comment.