diff --git a/unittest/c-library/test_library_properties.cpp b/unittest/c-library/test_library_properties.cpp index 87b4d54f86..5e8c410cce 100644 --- a/unittest/c-library/test_library_properties.cpp +++ b/unittest/c-library/test_library_properties.cpp @@ -41,5 +41,13 @@ protected: } }; +TEST_F(LAMMPS_properties, get_mpi_comm) { + int f_comm = lammps_get_mpi_comm(lmp); + if (lammps_config_has_mpi_support()) + EXPECT_GE(f_comm,0); + else + EXPECT_EQ(f_comm,-1); +}; + TEST_F(LAMMPS_properties, box) { };