Skip to content

Dataset for trigonal spacegroups with multiple settings fails #189

@abehersan

Description

@abehersan

Hi! First, off, thanks for the port to Julia! It is super useful for my research! (:

Describe the bug
For a crystal with trigonal spacegroup symmetry, Spglib fails to reshape the unit cell to accommodate the symmetry equivalent settings of the spacegroup. Case in point, the spacegroup 148 with setting 1. Hall number 436 according to https://yseto.net/sg/sg1

To Reproduce
Steps to reproduce the behavior:

  1. Start Julia REPL

  2. Run:

using Spglib
basis_v = [7 -3.5 0; 0 6.06218 0; 0 0 19]
positions = [[0.0, 0.0, 1/6]]
atoms = [1]
cell = Cell(basis_v, positions, atoms)
ds = get_dataset_with_hall_number(cell, 436, 1e-5)

Note: I have tried relaxing the symmetry precision parameter to no avail.

  1. See error ERROR: SpglibError: spacegroup search failed!

Expected behavior
The ds object should be consistent with what is expected for spacegroup 148 with the rhombohedral setting.

Versions (please complete the following information):

  • OS: Ubuntu 22.04 Jammy under WSL.
  • Julia version: 1.10.1
  • Spglib: v0.9.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions