From 147c015396c0ddddb9c0c419eb1e99d46bac3bdd Mon Sep 17 00:00:00 2001 From: Joroks <32484985+Joroks@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:34:20 +0200 Subject: [PATCH 1/2] Dependency Bump --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ffea176..8251c2d 100644 --- a/Project.toml +++ b/Project.toml @@ -12,7 +12,7 @@ MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" [compat] CEnum = "0.4, 0.5" -LAMMPS_jll = "2.5.1" +LAMMPS_jll = "2.5.2" Preferences = "1" MPI = "0.20" julia = "1.8" From 7ba920da077ba21cc4c6f623e02b192c71b778a9 Mon Sep 17 00:00:00 2001 From: Joroks <32484985+Joroks@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:46:43 +0200 Subject: [PATCH 2/2] Test for MPI --- test/runtests.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 1bb0f14..e978b73 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -351,4 +351,11 @@ end end end -@test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout)) +@testset "MPI" begin + if Sys.iswindows() + @test LAMMPS.API.lammps_config_has_mpi_support() == 0 + else + @test LAMMPS.API.lammps_config_has_mpi_support() != 0 + @test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout)) + end +end