spglib: spg_get_spacegroup_type_from_symmetry fails to find Fdd2 from non-standard primitive setting
Using spg_get_spacegroup_type_from_symmetry fails to find the correct spacegroup for orthorhombic F ( Fdd2) when the primitive lattice vectors are expressed in a non-standard basis. To get this non-standard basis, the lattice vectors have been transformed by the matrix
(1,0,0)(-1,1,0)(-1,-1,1).
The attached example code demonstrates this, returning “C2” for the alternate setting while giving the correct “Fdd2” for the conventional primitive basis. I tried to figure out what is failing, but I’m afraid the complexities of spglib’s search strategy defeated my attempts. I might guess that it has something to do with the rotations containing entries of “2” even though the transformation is volume-preserving.
On the other hand spg_get_dataset succeeds in both the conventional primitive and alternate basis. The test set is based on structure 1509692 in the crystallography open database.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- Niggli reduction before finding hall number from symmetry operations (#589) Fix #584 — committed to atztogo/spglib by atztogo a year ago
- Update document for (spg_)get_spacegroup_type_from_symmetry (#593) ~~@LecrisUT, I could not build document locally. Could you tell me what is the best way to check the doc build?~~ #584 revealed tha... — committed to spglib/spglib by atztogo a year ago
Thanks for your comment, @lan496. I am going to make a PR.
@lan496, probably we should reduce cell and transform symmetry operations according to it in
get_hall_number_from_symmetry:where