1 #define BOOST_TEST_DYN_LINK
2 #include <boost/test/unit_test.hpp>
20 BOOST_CHECK_EQUAL(pg.
size(), 48);
25 BOOST_CHECK_EQUAL(pg.
size(), 48);
30 BOOST_CHECK_EQUAL(pg.
size(), 48);
35 BOOST_CHECK_EQUAL(pg.
size(), 24);
48 for(
const auto &op : pg) {
57 for(
const auto &op : pg) {
66 for(
const auto &op : pg) {
75 for(
const auto &op : pg) {
82 std::stringstream lat_stream(
" 2.5000\n"
87 testlat.
read(lat_stream);
105 std::vector<Lattice> lat_list(enumerator.
begin(), enumerator.
end());
107 for(
auto it1 = lat_list.cbegin(); it1 != lat_list.cend(); ++it1) {
108 for(
auto it2 = it1 + 1; it2 != lat_list.cend(); ++it2) {
118 BOOST_AUTO_TEST_SUITE(LatticeTest)
138 BOOST_AUTO_TEST_SUITE_END()
Lattice superdupercell(const Lattice &lat1, const Lattice &lat2)
returns Lattice that is smallest possible supercell of both input Lattice
void generate_point_group(SymGroup &point_group, double pg_tol=TOL) const
Populate.
static Lattice hexagonal()
Construct cubic primitive cell of unit volume.
bool is_equivalent(const Lattice &RHS, double tol) const
Are two lattices the same, even if they have different lattice vectors.
Data structure for holding supercell enumeration properties.
Object copy_apply(const Transform &f, Object obj, Args &&...args)
void lattice_superduper_test()
const_iterator end() const
A const iterator to the past-the-last volume.
A fake container of supercell matrices.
static Lattice bcc()
Construct BCC primitive cell of unit volume.
const Eigen::Matrix3d & lat_column_mat() const
3x3 matrix with lattice vectors as its columne
void lattice_is_equivalent_test()
SymGroup is a collection of symmetry operations that satisfy the group property The symmetry operatio...
const_iterator begin() const
A const iterator to the beginning volume, specify here how the iterator should jump through the enume...
static Lattice cubic()
Construct simple cubic primitive cell of unit volume.
void read(std::istream &stream)
BOOST_AUTO_TEST_CASE(ReadTest)
bool is_supercell_of(const Lattice &tile, Eigen::Matrix3d &multimat, double _tol=TOL) const
Matrix that relates two lattices (e.g., strain or slat)
static Lattice fcc()
Construct FCC primitive cell of unit volume.
bool almost_equal(const GenericCluster< CoordType > &LHS, const GenericCluster< CoordType > &RHS, double tol)