Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed Oct 18, 2023
1 parent e943631 commit 7832df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/BrillouinSpglibExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Brillouin.KPaths.irrfbz_path(cell::Spglib.Cell)
# extract a standardized primitive basis `pRs` assoc. w/ `cell` via Spglib
dset = Spglib.get_dataset(cell)
sgnum = Int(dset.spacegroup_number)
pRs = SVector{3}(SVector{3,Float64}(col) for col in eachcol(dset.std_lattice))
pRs = SVector{3}(Spglib.basisvectors(dset.std_lattice))

# print warning if the input cell is a supercell (without any distortion)
if !isapprox(det(parent(cell.lattice)), det(parent(dset.primitive_lattice))) # check volumes agree
Expand All @@ -44,7 +44,7 @@ function Brillouin.KPaths.irrfbz_path(cell::Spglib.Cell)
rotation = dset.std_rotation_matrix

# Rotate k-points in Cartesian space by `rotation`
pRs_original = SVector{3}(SVector{3,Float64}(col) for col in eachcol(cell.lattice))
pRs_original = SVector{3}(Spglib.basisvectors(cell.lattice))
pGs_original = reciprocalbasis(pRs_original)
cartesianize!(kp)
for (lab, kv) in points(kp)
Expand Down

0 comments on commit 7832df1

Please sign in to comment.