Unverified Commit e813e2d3 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add minimal unit test for lammps_get_mpi_comm() API

parent bd72ef79
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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) {
};