several bugs fixed; unit tests updated
This commit is contained in:
@ -23,8 +23,13 @@ int f_lammps_gather_atoms_subset_mask(int);
|
||||
double f_lammps_gather_atoms_subset_position(int, int);
|
||||
void f_lammps_scatter_atoms_masks();
|
||||
void f_lammps_scatter_atoms_positions();
|
||||
void f_lammps_setup_gather_bonds();
|
||||
int f_lammps_test_gather_bonds_small();
|
||||
int f_lammps_test_gather_bonds_big();
|
||||
}
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
class LAMMPS_gather_scatter : public ::testing::Test {
|
||||
protected:
|
||||
LAMMPS_NS::LAMMPS *lmp;
|
||||
@ -200,3 +205,14 @@ TEST_F(LAMMPS_gather_scatter, scatter_atoms_subset_mask)
|
||||
EXPECT_EQ(f_lammps_gather_atoms_mask(1), 9);
|
||||
EXPECT_EQ(f_lammps_gather_atoms_mask(3), 3);
|
||||
};
|
||||
|
||||
TEST_F(LAMMPS_gather_scatter, gather_bonds)
|
||||
{
|
||||
f_lammps_setup_gather_bonds();
|
||||
#ifdef LAMMPS_BIGBIG
|
||||
EXPECT_EQ(f_lammps_test_gather_bonds_big(), 1);
|
||||
#else
|
||||
EXPECT_EQ(f_lammps_test_gather_bonds_small(), 1);
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user