add minimal unit test for lammps_get_mpi_comm() API

This commit is contained in:
Axel Kohlmeyer
2020-09-09 22:12:47 -04:00
parent bd72ef7996
commit e813e2d30a

View File

@ -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) {
};