add minimal unit test for lammps_get_mpi_comm() API
This commit is contained in:
@ -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) {
|
TEST_F(LAMMPS_properties, box) {
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user